Class ResponseSetupFlyweight

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

public class ResponseSetupFlyweight extends HeaderFlyweight
HeaderFlyweight for Response Setup Message Frames.

Stream Response Setup wiki page.

  • Field Details

    • HEADER_LENGTH

      public static final int HEADER_LENGTH
      Header length in bytes.
      See Also:
  • Constructor Details

    • ResponseSetupFlyweight

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

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

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

    • sessionId

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

      public ResponseSetupFlyweight 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 ResponseSetupFlyweight streamId(int streamId)
      Set stream id field.
      Parameters:
      streamId - field value.
      Returns:
      this for a fluent API.
    • responseSessionId

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

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