public class TerminateDriverFlyweight extends CorrelatedMessageFlyweight
buffer, CLIENT_ID_FIELD_OFFSET, CORRELATION_ID_FIELD_OFFSET, LENGTH, offset| Constructor and Description |
|---|
TerminateDriverFlyweight() |
| Modifier and Type | Method and Description |
|---|---|
int |
length()
Get the length of the current message.
|
TerminateDriverFlyweight |
tokenBuffer(DirectBuffer tokenBuffer,
int tokenOffset,
int tokenLength)
Fill the token buffer.
|
int |
tokenBufferLength()
Length of the token buffer in bytes
|
int |
tokenBufferOffset()
Offset of the token buffer
|
void |
validateLength(int msgTypeId,
int length)
Validate buffer length is long enough for message.
|
clientId, clientId, correlationId, correlationId, wrappublic int tokenBufferOffset()
public int tokenBufferLength()
public TerminateDriverFlyweight tokenBuffer(DirectBuffer tokenBuffer, int tokenOffset, int tokenLength)
tokenBuffer - containing the optional token for the request.tokenOffset - within the tokenBuffer at which the token begins.tokenLength - of the token in the tokenBuffer.public int length()
NB: must be called after the data is written in order to be accurate.
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.