public class ChunkFactory extends Object
| Constructor and Description |
|---|
ChunkFactory(byte[] chunked_gelf_id,
boolean padSeq) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
create(byte[] messageId,
byte seqNum,
byte numChunks,
byte[] subPayload)
Concatenates everything into a GELF Chunk header and then appends the sub Payload
|
public byte[] create(byte[] messageId,
byte seqNum,
byte numChunks,
byte[] subPayload)
messageId - The message ID of the message (remains same for all chunks)seqNum - The sequence number of the chunknumChunks - The number of chunks that will be sentsubPayload - The actual data that will be sent in this chunkCopyright © 2011-2014. All Rights Reserved.