Package io.aeron.driver.status
Class PublisherLimit
java.lang.Object
io.aeron.driver.status.PublisherLimit
The limit as a position in bytes applied to publishers on a session-channel-stream tuple. Publishers will experience
back pressure when this position is passed as a means of flow control.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringHuman-readable name for the counter.static final intType id of a publisher limit counter. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UnsafeBufferPositionallocate(MutableDirectBuffer tempBuffer, CountersManager countersManager, long clientId, long registrationId, int sessionId, int streamId, String channel) Allocate a new publisher limit counter for a stream.
-
Field Details
-
PUBLISHER_LIMIT_TYPE_ID
public static final int PUBLISHER_LIMIT_TYPE_IDType id of a publisher limit counter.- See Also:
-
NAME
Human-readable name for the counter.- See Also:
-
-
Constructor Details
-
PublisherLimit
public PublisherLimit()
-
-
Method Details
-
allocate
public static UnsafeBufferPosition allocate(MutableDirectBuffer tempBuffer, CountersManager countersManager, long clientId, long registrationId, int sessionId, int streamId, String channel) Allocate a new publisher limit 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.
-