C# Class Kafka.Client.Messages.MessageSet

A set of messages. A message set has a fixed serialized form, though the container for the bytes could be either in-memory or on disk.
Format: 8 byte long offset 4 byte size containing an integer N N message bytes as described in the message class
Inheritance: IWritable
ファイルを表示 Open project: precog/kafka Class Usage Examples

Public Methods

Method Description
GetEntrySize ( Message message ) : int

Gives the size of a size-delimited entry in a message set

GetMessageSetSize ( IEnumerable messages ) : int

Gives the size of a list of messages

WriteTo ( KafkaBinaryWriter writer ) : void

Writes content into given writer

WriteTo ( MemoryStream output ) : void

Writes content into given stream

Method Details

GetEntrySize() public static method

Gives the size of a size-delimited entry in a message set
public static GetEntrySize ( Message message ) : int
message Message /// The message. ///
return int

GetMessageSetSize() public static method

Gives the size of a list of messages
public static GetMessageSetSize ( IEnumerable messages ) : int
messages IEnumerable /// The messages. ///
return int

WriteTo() public abstract method

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

WriteTo() public abstract method

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