Package io.aeron.driver.status
Class PerImageIndicator
java.lang.Object
io.aeron.driver.status.PerImageIndicator
Allocates
AtomicCounter indicating a per PublicationImage indication of presence for
CongestionControl.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intType id of a per Image indicator. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AtomicCounterallocate(MutableDirectBuffer tempBuffer, String name, CountersManager countersManager, long registrationId, int sessionId, int streamId, String channel) Allocate a perPublicationImageindicator.
-
Field Details
-
PER_IMAGE_TYPE_ID
public static final int PER_IMAGE_TYPE_IDType 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 perPublicationImageindicator.- 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
AtomicCounterfor tracking the indicator.
-