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

Constructs a request to send to Kafka to get the current offset for a given topic
상속: AbstractRequest, IWritable
파일 보기 프로젝트 열기: precog/kafka 1 사용 예제들

공개 프로퍼티들

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

공개 메소드들

메소드 설명
GetRequestLength ( string topic, string encoding = DefaultEncoding ) : int
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.

WriteTo ( KafkaBinaryWriter writer ) : void

Writes content into given writer

WriteTo ( System output ) : void

Writes content into given stream

메소드 상세

GetRequestLength() 공개 정적인 메소드

public static GetRequestLength ( string topic, string encoding = DefaultEncoding ) : int
topic string
encoding string
리턴 int

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

WriteTo() 공개 메소드

Writes content into given writer
public WriteTo ( KafkaBinaryWriter writer ) : void
writer Kafka.Client.Serialization.KafkaBinaryWriter /// The writer. ///
리턴 void

WriteTo() 공개 메소드

Writes content into given stream
public WriteTo ( System output ) : void
output System /// The output stream. ///
리턴 void

프로퍼티 상세

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

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

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

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