public class CorrelatedMessageFlyweight extends Object
| Modifier and Type | Field and Description |
|---|---|
protected MutableDirectBuffer |
buffer |
static int |
CLIENT_ID_FIELD_OFFSET |
static int |
CORRELATION_ID_FIELD_OFFSET |
static int |
LENGTH |
protected int |
offset |
| Constructor and Description |
|---|
CorrelatedMessageFlyweight() |
| Modifier and Type | Method and Description |
|---|---|
long |
clientId()
return client id field
|
CorrelatedMessageFlyweight |
clientId(long clientId)
set client id field
|
long |
correlationId()
return 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 CLIENT_ID_FIELD_OFFSET
public static final int CORRELATION_ID_FIELD_OFFSET
public static final int LENGTH
protected MutableDirectBuffer buffer
protected int offset
public final CorrelatedMessageFlyweight wrap(MutableDirectBuffer buffer, int offset)
buffer - to wrapoffset - 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 valuepublic void validateLength(int msgTypeId,
int length)
msgTypeId - type of message.length - of message in bytes to validate.Copyright © 2014-2019 Real Logic Ltd. All Rights Reserved.