Class SetupFlyweight

All Implemented Interfaces:
Comparable<DirectBuffer>, AtomicBuffer, DirectBuffer, MutableDirectBuffer

public class SetupFlyweight extends HeaderFlyweight
HeaderFlyweight for Setup Message Frames.

Stream Setup wiki page.

  • Field Details

    • HEADER_LENGTH

      public static final int HEADER_LENGTH
      Length of the Setup Message Frame.
      See Also:
    • SEND_RESPONSE_SETUP_FLAG

      public static final short SEND_RESPONSE_SETUP_FLAG
      Subscriber should send response channel setup message.
      See Also:
    • GROUP_FLAG

      public static final short GROUP_FLAG
      Publication uses group/multicast semantics.
      See Also:
  • Constructor Details

    • SetupFlyweight

      public SetupFlyweight()
      Default constructor which can later be used to wrap a frame.
    • SetupFlyweight

      public SetupFlyweight(UnsafeBuffer buffer)
      Construct the flyweight over a frame.
      Parameters:
      buffer - containing the frame.
    • SetupFlyweight

      public SetupFlyweight(ByteBuffer buffer)
      Construct the flyweight over a frame.
      Parameters:
      buffer - containing the frame.
  • Method Details

    • termOffset

      public int termOffset()
      Get term offset field.
      Returns:
      term offset field.
    • termOffset

      public SetupFlyweight termOffset(int termOffset)
      Set term offset field.
      Parameters:
      termOffset - field value.
      Returns:
      this for a fluent API.
    • sessionId

      public int sessionId()
      Get session id field.
      Returns:
      session id field.
    • sessionId

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

      public int streamId()
      Get stream id field.
      Returns:
      stream id field.
    • streamId

      public SetupFlyweight streamId(int streamId)
      Set stream id field.
      Parameters:
      streamId - field value.
      Returns:
      this for a fluent API.
    • initialTermId

      public int initialTermId()
      Get initial term id field.
      Returns:
      initial term id field.
    • initialTermId

      public SetupFlyweight initialTermId(int termId)
      Set initial term id field.
      Parameters:
      termId - field value.
      Returns:
      this for a fluent API.
    • activeTermId

      public int activeTermId()
      Get active term id field.
      Returns:
      term id field.
    • activeTermId

      public SetupFlyweight activeTermId(int termId)
      Set active term id field.
      Parameters:
      termId - field value.
      Returns:
      this for a fluent API.
    • termLength

      public int termLength()
      Get term length field.
      Returns:
      term length field value.
    • termLength

      public SetupFlyweight termLength(int termLength)
      Set term length field.
      Parameters:
      termLength - field value.
      Returns:
      this for a fluent API.
    • mtuLength

      public int mtuLength()
      Get MTU length field.
      Returns:
      MTU length field value.
    • mtuLength

      public SetupFlyweight mtuLength(int mtuLength)
      Set MTU length field.
      Parameters:
      mtuLength - field value.
      Returns:
      this for a fluent API.
    • ttl

      public int ttl()
      Get the TTL field.
      Returns:
      TTL field value.
    • ttl

      public SetupFlyweight ttl(int ttl)
      Set the TTL field.
      Parameters:
      ttl - field value.
      Returns:
      this for a fluent API.
    • toString

      public String toString()
      Overrides:
      toString in class UnsafeBuffer