Class PerImageIndicator

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

public class PerImageIndicator extends Object
Allocates AtomicCounter indicating a per PublicationImage indication of presence for CongestionControl.
  • Field Details

    • PER_IMAGE_TYPE_ID

      public static final int PER_IMAGE_TYPE_ID
      Type id of a per Image indicator.
      See Also:
  • Constructor Details

    • PerImageIndicator

      public PerImageIndicator()
  • Method Details

    • allocate

      public static AtomicCounter allocate(MutableDirectBuffer tempBuffer, String name, CountersManager countersManager, long registrationId, int sessionId, int streamId, String channel)
      Allocate a per PublicationImage indicator.
      Parameters:
      tempBuffer - to be used for labels and key.
      name - of the counter for the label.
      countersManager - from which the underlying storage is allocated.
      registrationId - associated with the counter.
      sessionId - for the stream of messages.
      streamId - for the stream of messages.
      channel - for the stream of messages.
      Returns:
      a new AtomicCounter for tracking the indicator.