Class ReceiverHwm

java.lang.Object
io.aeron.driver.status.ReceiverHwm

public class ReceiverHwm extends Object
The highest position the Receiver has observed on a session-channel-stream tuple while rebuilding the stream. It is possible the stream is not complete to this point if the stream has experienced loss.
  • Field Details

    • RECEIVER_HWM_TYPE_ID

      public static final int RECEIVER_HWM_TYPE_ID
      Type id of a receiver high-water-mark position counter.
      See Also:
    • NAME

      public static final String NAME
      Human-readable name for the counter.
      See Also:
  • Constructor Details

    • ReceiverHwm

      public ReceiverHwm()
  • Method Details

    • allocate

      public static UnsafeBufferPosition allocate(MutableDirectBuffer tempBuffer, CountersManager countersManager, long clientId, long registrationId, int sessionId, int streamId, String channel)
      Allocate a new receiver high-water-mark position counter for a stream.
      Parameters:
      tempBuffer - to build the label.
      countersManager - to allocate the counter from.
      clientId - to set as counter owner.
      registrationId - associated with the counter.
      sessionId - associated with the counter.
      streamId - associated with the counter.
      channel - associated with the counter.
      Returns:
      the allocated counter.