public class ImageBuffersReadyFlyweight
extends java.lang.Object
Note: Layout should be SBE 2.0 compliant so that the source identity length is aligned.
Constructor and Description |
---|
ImageBuffersReadyFlyweight() |
Modifier and Type | Method and Description |
---|---|
long |
correlationId()
return correlation id field
|
ImageBuffersReadyFlyweight |
correlationId(long correlationId)
set correlation id field
|
int |
length()
Get the length of the current message
|
java.lang.String |
logFileName()
Return the Log Filename in ASCII
|
ImageBuffersReadyFlyweight |
logFileName(java.lang.String logFileName)
Set the log filename in ASCII
|
int |
sessionId()
return session id field
|
ImageBuffersReadyFlyweight |
sessionId(int sessionId)
set session id field
|
java.lang.String |
sourceIdentity()
Return the source identity string in ASCII
|
ImageBuffersReadyFlyweight |
sourceIdentity(java.lang.String value)
Set the source identity string in ASCII
|
int |
streamId()
return stream id field
|
ImageBuffersReadyFlyweight |
streamId(int streamId)
set stream id field
|
int |
subscriberPositionId()
Return the position Id for the subscriber
|
ImageBuffersReadyFlyweight |
subscriberPositionId(int id)
Set the position Id for the subscriber
|
long |
subscriptionRegistrationId()
Return the registration Id for the Subscription
|
ImageBuffersReadyFlyweight |
subscriptionRegistrationId(long id)
Set the registration Id for the Subscription
|
ImageBuffersReadyFlyweight |
wrap(org.agrona.MutableDirectBuffer buffer,
int offset)
Wrap the buffer at a given offset for updates.
|
public final ImageBuffersReadyFlyweight wrap(org.agrona.MutableDirectBuffer buffer, int offset)
buffer
- to wrapoffset
- at which the message begins.public long correlationId()
public ImageBuffersReadyFlyweight correlationId(long correlationId)
correlationId
- field valuepublic int sessionId()
public ImageBuffersReadyFlyweight sessionId(int sessionId)
sessionId
- field valuepublic int streamId()
public ImageBuffersReadyFlyweight streamId(int streamId)
streamId
- field valuepublic ImageBuffersReadyFlyweight subscriberPositionId(int id)
id
- for the subscriber positionpublic int subscriberPositionId()
public ImageBuffersReadyFlyweight subscriptionRegistrationId(long id)
id
- for the Subscriptionpublic long subscriptionRegistrationId()
public java.lang.String logFileName()
public ImageBuffersReadyFlyweight logFileName(java.lang.String logFileName)
logFileName
- for the imagepublic java.lang.String sourceIdentity()
public ImageBuffersReadyFlyweight sourceIdentity(java.lang.String value)
value
- for the source identitypublic 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.