C# Class Kafka.Client.Requests.MultiFetchRequest

Constructs a multi-consumer request to send to Kafka.
Inheritance: AbstractRequest, IWritable
Exibir arquivo Open project: precog/kafka Class Usage Examples

Public Methods

Method Description
GetRequestLength ( IList requests, string encoding = DefaultEncoding ) : int
MultiFetchRequest ( IList requests ) : System

Initializes a new instance of the MultiFetchRequest class.

WriteTo ( KafkaBinaryWriter writer ) : void

Writes content into given writer

WriteTo ( MemoryStream output ) : void

Writes content into given stream

Method Details

GetRequestLength() public static method

public static GetRequestLength ( IList requests, string encoding = DefaultEncoding ) : int
requests IList
encoding string
return int

MultiFetchRequest() public method

Initializes a new instance of the MultiFetchRequest class.
public MultiFetchRequest ( IList requests ) : System
requests IList Requests to package up and batch.
return System

WriteTo() public method

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

WriteTo() public method

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