public class CorrelatedMessageFlyweight
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.agrona.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
|
CorrelatedMessageFlyweight |
wrap(org.agrona.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 org.agrona.MutableDirectBuffer buffer
protected int offset
public final CorrelatedMessageFlyweight wrap(org.agrona.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 valueCopyright © 2014-2018 Real Logic Ltd. All Rights Reserved.