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

Constructs a request to send to Kafka.
상속: AbstractRequest
파일 보기 프로젝트 열기: 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.

GetBytes ( ) : byte[]

Gets the bytes matching the expected Kafka structure.

IsValid ( ) : bool

Determines if the request has valid settings.

비공개 메소드들

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

Gets the bytes representing the request which is used when generating a multi-request.

The GetBytes method is used for sending a single RequestType.Fetch. It prefixes this byte array with the request type and the number of messages. This method is used to supply the MultiFetchRequest with the contents for its message.

메소드 상세

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

GetBytes() 공개 메소드

Gets the bytes matching the expected Kafka structure.
public GetBytes ( ) : byte[]
리턴 byte[]

IsValid() 공개 메소드

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