me.moocar.logbackgelf
Class ChunkFactory
java.lang.Object
me.moocar.logbackgelf.ChunkFactory
public class ChunkFactory
- extends Object
Responsible for wrapping a subPayload in a GELF Chunk
|
Constructor Summary |
ChunkFactory(byte[] chunked_gelf_id,
boolean padSeq)
|
|
Method Summary |
byte[] |
create(byte[] messageId,
byte seqNum,
byte numChunks,
byte[] subPayload)
Concatenates everything into a GELF Chunk header and then appends the sub Payload |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChunkFactory
public ChunkFactory(byte[] chunked_gelf_id,
boolean padSeq)
create
public byte[] create(byte[] messageId,
byte seqNum,
byte numChunks,
byte[] subPayload)
- Concatenates everything into a GELF Chunk header and then appends the sub Payload
- Parameters:
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 chunk
- Returns:
- The complete chunk that wraps the sub pay load
Copyright © 2011-2014. All Rights Reserved.