C# 클래스 Kafka.Client.Messages.Message

Message send to Kafka server
Format: 1 byte "magic" identifier to allow format changes 4 byte CRC32 of the payload N - 5 byte payload
상속: IWritable
파일 보기 프로젝트 열기: precog/kafka 1 사용 예제들

공개 메소드들

메소드 설명
Message ( byte payload ) : System

Initializes a new instance of the Message class.

Initializes the magic number as default and the checksum as null. It will be automatically computed.

Message ( byte payload, CompressionCodecs compressionCodec ) : System

Initializes a new instance of the Message class.

Initializes the checksum as null. It will be automatically computed.

Message ( byte payload, byte checksum ) : System

Initializes a new instance of the Message class.

Initializes with default magic number

Message ( byte payload, byte checksum, CompressionCodecs compressionCodec ) : System

Initializes a new instance of the Message class.

ToString ( ) : string

Try to show the payload as decoded to UTF-8.

WriteTo ( KafkaBinaryWriter writer ) : void

Writes message data using given writer

WriteTo ( MemoryStream output ) : void

Writes message data into given message buffer

비공개 메소드들

메소드 설명
FromMessageBytes ( byte data ) : Message
ParseFrom ( KafkaBinaryReader reader, int size ) : Message
ParseFrom ( byte data ) : Message

메소드 상세

Message() 공개 메소드

Initializes a new instance of the Message class.
Initializes the magic number as default and the checksum as null. It will be automatically computed.
public Message ( byte payload ) : System
payload byte /// The payload. ///
리턴 System

Message() 공개 메소드

Initializes a new instance of the Message class.
Initializes the checksum as null. It will be automatically computed.
public Message ( byte payload, CompressionCodecs compressionCodec ) : System
payload byte The data for the payload.
compressionCodec CompressionCodecs
리턴 System

Message() 공개 메소드

Initializes a new instance of the Message class.
Initializes with default magic number
public Message ( byte payload, byte checksum ) : System
payload byte /// The payload. ///
checksum byte /// The checksum. ///
리턴 System

Message() 공개 메소드

Initializes a new instance of the Message class.
public Message ( byte payload, byte checksum, CompressionCodecs compressionCodec ) : System
payload byte The data for the payload.
checksum byte The checksum for the payload.
compressionCodec CompressionCodecs
리턴 System

ToString() 공개 메소드

Try to show the payload as decoded to UTF-8.
public ToString ( ) : string
리턴 string

WriteTo() 공개 메소드

Writes message data using given writer
public WriteTo ( KafkaBinaryWriter writer ) : void
writer Kafka.Client.Serialization.KafkaBinaryWriter /// The writer. ///
리턴 void

WriteTo() 공개 메소드

Writes message data into given message buffer
public WriteTo ( MemoryStream output ) : void
output System.IO.MemoryStream /// The output. ///
리턴 void