Package io.aeron.command
Class NextAvailableSessionIdFlyweight
java.lang.Object
io.aeron.command.NextAvailableSessionIdFlyweight
Message to denote a response to get next session id command
(
ControlProtocolEvents.ON_NEXT_AVAILABLE_SESSION_ID).-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGet the correlation id field.correlationId(long correlationId) Set the correlation id field.intThe session id.nextSessionId(int sessionId) Set session id field.toString()wrap(MutableDirectBuffer buffer, int offset) Wrap the buffer at a given offset for updates.
-
Field Details
-
LENGTH
public static final int LENGTHLength of the header.- See Also:
-
-
Constructor Details
-
NextAvailableSessionIdFlyweight
public NextAvailableSessionIdFlyweight()
-
-
Method Details
-
wrap
Wrap the buffer at a given offset for updates.- Parameters:
buffer- to wrapoffset- at which the message begins.- Returns:
- this for a fluent API.
-
correlationId
public long correlationId()Get the correlation id field.- Returns:
- correlation id field.
-
correlationId
Set the correlation id field.- Parameters:
correlationId- field value.- Returns:
- this for a fluent API.
-
nextSessionId
public int nextSessionId()The session id.- Returns:
- session id.
-
nextSessionId
Set session id field.- Parameters:
sessionId- field value.- Returns:
- this for a fluent API.
-
toString
-