C# 클래스 Kafka.Client.Request.OffsetRequest

Constructs a request to send to Kafka.
상속: AbstractRequest
파일 보기 프로젝트 열기: precog/kafka 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
EarliestTime long
LatestTime long

공개 메소드들

메소드 설명
GetBytes ( ) : byte[]

Converts the request to an array of bytes that is expected by Kafka.

IsValid ( ) : bool

Determines if the request has valid settings.

OffsetRequest ( ) : System

Initializes a new instance of the OffsetRequest class.

OffsetRequest ( string topic, int partition, long time, int maxOffsets ) : System

Initializes a new instance of the OffsetRequest class.

메소드 상세

GetBytes() 공개 메소드

Converts the request to an array of bytes that is expected by Kafka.
public GetBytes ( ) : byte[]
리턴 byte[]

IsValid() 공개 메소드

Determines if the request has valid settings.
public IsValid ( ) : bool
리턴 bool

OffsetRequest() 공개 메소드

Initializes a new instance of the OffsetRequest class.
public OffsetRequest ( ) : System
리턴 System

OffsetRequest() 공개 메소드

Initializes a new instance of the OffsetRequest class.
public OffsetRequest ( string topic, int partition, long time, int maxOffsets ) : System
topic string The topic to publish to.
partition int The partition to publish to.
time long The time from which to request offsets.
maxOffsets int The maximum amount of offsets to return.
리턴 System

프로퍼티 상세

EarliestTime 공개적으로 정적으로 프로퍼티

The earliest time constant.
public static long EarliestTime
리턴 long

LatestTime 공개적으로 정적으로 프로퍼티

The latest time constant.
public static long LatestTime
리턴 long