Class PublisherPos

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

public class PublisherPos extends Object
The position in bytes a publication has reached appending to the log.

Note: This is a not a real-time value like the other and is updated each conductor duty cycle for monitoring purposes.

  • Field Details

    • PUBLISHER_POS_TYPE_ID

      public static final int PUBLISHER_POS_TYPE_ID
      Type id of a publisher limit counter.
      See Also:
  • Constructor Details

    • PublisherPos

      public PublisherPos()
  • Method Details

    • allocate

      public static UnsafeBufferPosition allocate(MutableDirectBuffer tempBuffer, CountersManager countersManager, long clientId, long registrationId, int sessionId, int streamId, String channel, boolean isExclusive)
      Allocate a new publication 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.
      isExclusive - {code true} if exclusive publication.
      Returns:
      the allocated counter.