Class NextAvailableSessionIdFlyweight

java.lang.Object
io.aeron.command.NextAvailableSessionIdFlyweight

public class NextAvailableSessionIdFlyweight extends Object
Message to denote a response to get next session id command (ControlProtocolEvents.ON_NEXT_AVAILABLE_SESSION_ID).
Since:
1.49.0
See Also:
  • Field Details

  • Constructor Details

    • NextAvailableSessionIdFlyweight

      public NextAvailableSessionIdFlyweight()
  • Method Details

    • wrap

      public final NextAvailableSessionIdFlyweight wrap(MutableDirectBuffer buffer, int offset)
      Wrap the buffer at a given offset for updates.
      Parameters:
      buffer - to wrap
      offset - 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

      public NextAvailableSessionIdFlyweight correlationId(long 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

      public NextAvailableSessionIdFlyweight nextSessionId(int sessionId)
      Set session id field.
      Parameters:
      sessionId - field value.
      Returns:
      this for a fluent API.
    • toString

      public String toString()
      Overrides:
      toString in class Object