public class ImageMessageFlyweight
extends java.lang.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 |
---|---|
java.lang.String |
channel()
Get the channel field as ASCII
|
ImageMessageFlyweight |
channel(java.lang.String channel)
Set the channel field as ASCII
|
long |
correlationId()
return correlation id field
|
ImageMessageFlyweight |
correlationId(long correlationId)
set correlation id field
|
int |
length()
Get the length of the current message
|
int |
streamId()
return stream id field
|
ImageMessageFlyweight |
streamId(int streamId)
set stream id field
|
long |
subscriptionRegistrationId()
Registration ID for the subscription.
|
ImageMessageFlyweight |
subscriptionRegistrationId(long registrationId)
Set the tegistration ID for the subscription.
|
ImageMessageFlyweight |
wrap(org.agrona.MutableDirectBuffer buffer,
int offset)
Wrap the buffer at a given offset for updates.
|
public final ImageMessageFlyweight wrap(org.agrona.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 valuepublic java.lang.String channel()
public ImageMessageFlyweight channel(java.lang.String channel)
channel
- field valuepublic int length()
NB: must be called after the data is written in order to be accurate.
Copyright © 2014-2018 Real Logic Ltd. All Rights Reserved.