public class ExclusiveBufferClaim extends BufferClaim
ExclusiveBufferClaims offer additional functionality over standard BufferClaims in that the header
can be manipulated for setting flags and type. This allows the user to implement things such as their own
fragmentation policy.
The claimed space is in BufferClaim.buffer() between BufferClaim.offset() and BufferClaim.offset() + BufferClaim.length().
When the buffer is filled with message data, use BufferClaim.commit() to make it available to subscribers.
If the claimed space is no longer required it can be aborted by calling BufferClaim.abort().
buffer| Constructor and Description |
|---|
ExclusiveBufferClaim() |
| Modifier and Type | Method and Description |
|---|---|
byte |
flags()
Get the value of the flags field.
|
ExclusiveBufferClaim |
flags(byte flags)
Set the value of the header flags field.
|
int |
headerType()
Get the value of the header type field.
|
ExclusiveBufferClaim |
headerType(int type)
Set the value of the header type field.
|
ExclusiveBufferClaim |
reservedValue(long value)
Write the provided value into the reserved space at the end of the data frame header.
|
abort, buffer, commit, length, offset, reservedValue, wrappublic ExclusiveBufferClaim reservedValue(long value)
Note: The value will be written in ByteOrder.LITTLE_ENDIAN format.
reservedValue in class BufferClaimvalue - to be stored in the reserve space at the end of a data frame header.DataHeaderFlyweightpublic final byte flags()
DataHeaderFlyweightpublic ExclusiveBufferClaim flags(byte flags)
flags - value to be set in the header.DataHeaderFlyweightpublic final int headerType()
DataHeaderFlyweightpublic ExclusiveBufferClaim headerType(int type)
type - value to be set in the header.DataHeaderFlyweightCopyright © 2014-2018 Real Logic Ltd. All Rights Reserved.