public class DestinationMessageFlyweight extends CorrelatedMessageFlyweight
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 | | | +---------------------------------------------------------------+ | Command Correlation ID | | | +---------------------------------------------------------------+ | Registration Correlation ID | | | +---------------------------------------------------------------+ | Channel Length | +---------------------------------------------------------------+ | Channel (ASCII) ... ... | +---------------------------------------------------------------+
buffer, CLIENT_ID_FIELD_OFFSET, CORRELATION_ID_FIELD_OFFSET, LENGTH, offset| Constructor and Description |
|---|
DestinationMessageFlyweight() |
| Modifier and Type | Method and Description |
|---|---|
void |
appendChannel(Appendable appendable)
Append the channel value to an
Appendable. |
String |
channel()
Get the channel field in ASCII
|
DestinationMessageFlyweight |
channel(String channel)
Set channel field in ASCII
|
int |
length() |
long |
registrationCorrelationId()
return correlation id used in registration field
|
DestinationMessageFlyweight |
registrationCorrelationId(long correlationId)
set registration correlation id field
|
void |
validateLength(int msgTypeId,
int length)
Validate buffer length is long enough for message.
|
clientId, clientId, correlationId, correlationId, wrappublic long registrationCorrelationId()
public DestinationMessageFlyweight registrationCorrelationId(long correlationId)
correlationId - field valuepublic String channel()
public void appendChannel(Appendable appendable)
Appendable.appendable - to append channel to.public DestinationMessageFlyweight channel(String channel)
channel - field valuepublic int length()
public void validateLength(int msgTypeId,
int length)
validateLength in class CorrelatedMessageFlyweightmsgTypeId - type of message.length - of message in bytes to validate.Copyright © 2014-2019 Real Logic Ltd. All Rights Reserved.