public class TerminateDriverFlyweight extends CorrelatedMessageFlyweight
LENGTH| Constructor and Description |
|---|
TerminateDriverFlyweight() |
| Modifier and Type | Method and Description |
|---|---|
static int |
computeLength(int tokenLength)
Compute the length of the command message for a given token length.
|
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()
Relative offset of the token buffer
|
void |
validateLength(int msgTypeId,
int length)
Validate buffer length is long enough for message.
|
TerminateDriverFlyweight |
wrap(MutableDirectBuffer buffer,
int offset)
Wrap the buffer at a given offset for updates.
|
clientId, clientId, correlationId, correlationIdpublic TerminateDriverFlyweight wrap(MutableDirectBuffer buffer, int offset)
wrap in class CorrelatedMessageFlyweightbuffer - to wrap.offset - at which the message begins.public 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 correct.
public void validateLength(int msgTypeId,
int length)
validateLength in class CorrelatedMessageFlyweightmsgTypeId - type of message.length - of message in bytes to validate.public static int computeLength(int tokenLength)
tokenLength - to be appended to the header.Copyright © 2014-2020 Real Logic Limited. All Rights Reserved.