Class ReceiveChannelEndpointThreadLocals

java.lang.Object
io.aeron.driver.media.ReceiveChannelEndpointThreadLocals

public final class ReceiveChannelEndpointThreadLocals extends Object
Thread local variables that will only be accessed in the context of the Receiver agent thread from within a ReceiveChannelEndpoint subclass.
  • Constructor Details

    • ReceiveChannelEndpointThreadLocals

      public ReceiveChannelEndpointThreadLocals()
      Construct a set of local state to be used by the receiver thread.
  • Method Details

    • statusMessageBuffer

      public ByteBuffer statusMessageBuffer()
      Buffer for writing status messages to send.
      Returns:
      buffer for writing status messages to send.
    • statusMessageFlyweight

      public StatusMessageFlyweight statusMessageFlyweight()
      Flyweight over the statusMessageBuffer().
      Returns:
      flyweight over the statusMessageBuffer().
    • nakBuffer

      public ByteBuffer nakBuffer()
      Buffer for writing NAK messages to send.
      Returns:
      buffer for writing NAK messages to send.
    • nakFlyweight

      public NakFlyweight nakFlyweight()
      Flyweight over the nakBuffer().
      Returns:
      flyweight over the nakBuffer().
    • rttMeasurementBuffer

      public ByteBuffer rttMeasurementBuffer()
      Buffer for writing RTT measurement messages to send.
      Returns:
      buffer for writing RTT measurement messages to send.
    • rttMeasurementFlyweight

      public RttMeasurementFlyweight rttMeasurementFlyweight()
      Flyweight over the rttMeasurementBuffer().
      Returns:
      flyweight over the rttMeasurementBuffer().
    • responseSetupBuffer

      public ByteBuffer responseSetupBuffer()
      Buffer for writing Response Setup messages to send.
      Returns:
      buffer for writing Response Setup messages to send.
    • responseSetupHeader

      public ResponseSetupFlyweight responseSetupHeader()
      Flyweight over the responseSetupBuffer().
      Returns:
      flyweight over the responseSetupBuffer().
    • errorBuffer

      public ByteBuffer errorBuffer()
      Buffer for writing the Error messages to send.
      Returns:
      buffer for writing the error messages to send.
    • errorFlyweight

      public ErrorFlyweight errorFlyweight()
      Flyweight over the errorBuffer().
      Returns:
      flyweight over the errorBuffer().
    • nextReceiverId

      public long nextReceiverId()
      Get the next receiver id to be used for a receiver channel identity.
      Returns:
      the next receiver id to be used for a receiver channel identity.
    • toString

      public String toString()
      Overrides:
      toString in class Object