Package io.aeron.driver.media
Class ReceiveChannelEndpointThreadLocals
java.lang.Object
io.aeron.driver.media.ReceiveChannelEndpointThreadLocals
Thread local variables that will only be accessed in the context of the Receiver agent thread from within a
ReceiveChannelEndpoint subclass.-
Constructor Summary
ConstructorsConstructorDescriptionConstruct a set of local state to be used by the receiver thread. -
Method Summary
Modifier and TypeMethodDescriptionBuffer for writing the Error messages to send.Flyweight over theerrorBuffer().Buffer for writing NAK messages to send.Flyweight over thenakBuffer().longGet the next receiver id to be used for a receiver channel identity.Buffer for writing Response Setup messages to send.Flyweight over theresponseSetupBuffer().Buffer for writing RTT measurement messages to send.Flyweight over therttMeasurementBuffer().Buffer for writing status messages to send.Flyweight over thestatusMessageBuffer().toString()
-
Constructor Details
-
ReceiveChannelEndpointThreadLocals
public ReceiveChannelEndpointThreadLocals()Construct a set of local state to be used by the receiver thread.
-
-
Method Details
-
statusMessageBuffer
Buffer for writing status messages to send.- Returns:
- buffer for writing status messages to send.
-
statusMessageFlyweight
Flyweight over thestatusMessageBuffer().- Returns:
- flyweight over the
statusMessageBuffer().
-
nakBuffer
Buffer for writing NAK messages to send.- Returns:
- buffer for writing NAK messages to send.
-
nakFlyweight
Flyweight over thenakBuffer().- Returns:
- flyweight over the
nakBuffer().
-
rttMeasurementBuffer
Buffer for writing RTT measurement messages to send.- Returns:
- buffer for writing RTT measurement messages to send.
-
rttMeasurementFlyweight
Flyweight over therttMeasurementBuffer().- Returns:
- flyweight over the
rttMeasurementBuffer().
-
responseSetupBuffer
Buffer for writing Response Setup messages to send.- Returns:
- buffer for writing Response Setup messages to send.
-
responseSetupHeader
Flyweight over theresponseSetupBuffer().- Returns:
- flyweight over the
responseSetupBuffer().
-
errorBuffer
Buffer for writing the Error messages to send.- Returns:
- buffer for writing the error messages to send.
-
errorFlyweight
Flyweight over theerrorBuffer().- 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
-