public class ImageMessageFlyweight extends Object
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Correlation ID | | | +---------------------------------------------------------------+ | Subscription Registration ID | | | +---------------------------------------------------------------+ | Stream ID | +---------------------------------------------------------------+ | Channel Length | +---------------------------------------------------------------+ | Channel (ASCII) ... ... | +---------------------------------------------------------------+
| Constructor and Description |
|---|
ImageMessageFlyweight() |
| Modifier and Type | Method and Description |
|---|---|
void |
appendChannel(Appendable appendable)
Append the channel value to an
Appendable. |
String |
channel()
Get the channel field as ASCII.
|
ImageMessageFlyweight |
channel(String channel)
Set the channel field as ASCII
|
long |
correlationId()
The correlation id field.
|
ImageMessageFlyweight |
correlationId(long correlationId)
Set the correlation id field.
|
int |
length()
Get the length of the current message
|
int |
streamId()
The stream id field.
|
ImageMessageFlyweight |
streamId(int streamId)
Set the stream id field.
|
long |
subscriptionRegistrationId()
Registration ID for the subscription.
|
ImageMessageFlyweight |
subscriptionRegistrationId(long registrationId)
Set the registration ID for the subscription.
|
ImageMessageFlyweight |
wrap(MutableDirectBuffer buffer,
int offset)
Wrap the buffer at a given offset for updates.
|
public final ImageMessageFlyweight wrap(MutableDirectBuffer buffer, int offset)
buffer - to wrapoffset - at which the message begins.public long correlationId()
public ImageMessageFlyweight correlationId(long correlationId)
correlationId - field valuepublic long subscriptionRegistrationId()
public ImageMessageFlyweight subscriptionRegistrationId(long registrationId)
registrationId - for the subscriptionpublic int streamId()
public ImageMessageFlyweight streamId(int streamId)
streamId - field value.public String channel()
public void appendChannel(Appendable appendable)
Appendable.appendable - to append channel to.public ImageMessageFlyweight channel(String channel)
channel - field valuepublic int length()
NB: must be called after the data is written in order to be accurate.
Copyright © 2014-2020 Real Logic Limited. All Rights Reserved.