public class CorrelatedMessageFlyweight extends Object
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Client ID | | | +---------------------------------------------------------------+ | Correlation ID | | | +---------------------------------------------------------------+
| Modifier and Type | Field and Description |
|---|---|
static int |
LENGTH
Length of the header.
|
| Constructor and Description |
|---|
CorrelatedMessageFlyweight() |
| Modifier and Type | Method and Description |
|---|---|
long |
clientId()
Get client id field.
|
CorrelatedMessageFlyweight |
clientId(long clientId)
set client id field
|
long |
correlationId()
Get correlation id field.
|
CorrelatedMessageFlyweight |
correlationId(long correlationId)
Set correlation id field.
|
void |
validateLength(int msgTypeId,
int length)
Validate buffer length is long enough for message.
|
CorrelatedMessageFlyweight |
wrap(MutableDirectBuffer buffer,
int offset)
Wrap the buffer at a given offset for updates.
|
public static final int LENGTH
public CorrelatedMessageFlyweight wrap(MutableDirectBuffer buffer, int offset)
buffer - to wrap.offset - at which the message begins.public long clientId()
public CorrelatedMessageFlyweight clientId(long clientId)
clientId - field valuepublic long correlationId()
public CorrelatedMessageFlyweight correlationId(long correlationId)
correlationId - field value.public void validateLength(int msgTypeId,
int length)
msgTypeId - type of message.length - of message in bytes to validate.Copyright © 2014-2023 Real Logic Limited. All Rights Reserved.