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

Constructs a request to send to Kafka. FetchRequest => ReplicaId MaxWaitTime MinBytes [TopicName [Partition FetchOffset MaxBytes]] ReplicaId => int32 MaxWaitTime => int32 MinBytes => int32 TopicName => string Partition => int32 FetchOffset => int64 MaxBytes => int32 set MaxWaitTime to 0 and MinBytes to 0 can reduce latency.
상속: AbstractRequest, IWritable
파일 보기 프로젝트 열기: precog/kafka 1 사용 예제들

공개 메소드들

메소드 설명
FetchRequest ( ) : System

Initializes a new instance of the FetchRequest class.

FetchRequest ( string topic, int partition, long offset ) : System

Initializes a new instance of the FetchRequest class.

FetchRequest ( string topic, int partition, long offset, int maxSize ) : System

Initializes a new instance of the FetchRequest class.

GetRequestAsPartOfMultirequestLength ( string topic, string encoding = DefaultEncoding ) : int
GetRequestLength ( string topic, string encoding = DefaultEncoding ) : int
ToString ( ) : string
WriteTo ( KafkaBinaryWriter writer ) : void

Writes content into given writer

WriteTo ( MemoryStream output ) : void

Writes content into given stream

메소드 상세

FetchRequest() 공개 메소드

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

FetchRequest() 공개 메소드

Initializes a new instance of the FetchRequest class.
public FetchRequest ( string topic, int partition, long offset ) : System
topic string The topic to publish to.
partition int The partition to publish to.
offset long The offset in the topic/partition to retrieve from.
리턴 System

FetchRequest() 공개 메소드

Initializes a new instance of the FetchRequest class.
public FetchRequest ( string topic, int partition, long offset, int maxSize ) : System
topic string The topic to publish to.
partition int The partition to publish to.
offset long The offset in the topic/partition to retrieve from.
maxSize int The maximum size.
리턴 System

GetRequestAsPartOfMultirequestLength() 공개 정적인 메소드

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

GetRequestLength() 공개 정적인 메소드

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

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

WriteTo() 공개 메소드

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

WriteTo() 공개 메소드

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