Enum Class CapacityLimit
- All Implemented Interfaces:
Serializable, Comparable<CapacityLimit>, Constable
A limit that refuses operations with
MqttCapacityException when it is full.
MqttCapacityException.limit() names it, and ClientStats.refusals() counts its refusals.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe pending observations, such asMqttClient.whenConnected(),Subscription.established(),MqttClient.terminated(), andMqttClient.stats().The operations waiting for the client to process them.The operation capacity that publications share with concurrentMqttClient.connect()andMqttClient.disconnect()calls beyond the first of each; seeClientStats.Sending.operations().The packet identifiers that publications and subscription requests share.The bytes that unfinished publications keep.The registrations waiting for the client to process them.The send queue, or a backlog in it that waits for send capacity.MqttClientBuilder.maxSubscriptions(int), for registrations and delivery lanes. -
Method Summary
Modifier and TypeMethodDescriptionstatic CapacityLimitReturns the enum constant of this class with the specified name.static CapacityLimit[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OPERATIONS
The operation capacity that publications share with concurrentMqttClient.connect()andMqttClient.disconnect()calls beyond the first of each; seeClientStats.Sending.operations(). -
OPERATION_QUEUE
The operations waiting for the client to process them. -
INFLIGHT_PUBLISHES
-
PUBLICATION_BYTES
The bytes that unfinished publications keep. -
PACKET_IDENTIFIERS
The packet identifiers that publications and subscription requests share. -
SEND_QUEUE
The send queue, or a backlog in it that waits for send capacity. -
SUBSCRIPTIONS
MqttClientBuilder.maxSubscriptions(int), for registrations and delivery lanes. -
REGISTRATION_QUEUE
The registrations waiting for the client to process them. -
OBSERVATIONS
The pending observations, such asMqttClient.whenConnected(),Subscription.established(),MqttClient.terminated(), andMqttClient.stats().
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-