Class ClientStats.Subscribing
java.lang.Object
org.mqtt4j.hato.ClientStats.Subscribing
- Enclosing class:
ClientStats
The subscription registrations and delivery lanes, in total.
-
Method Summary
Modifier and TypeMethodDescriptionlongReturns the number of registrations that the broker has granted.lanes()Returns the delivery lanes, one for each subscription, including the lanes of stopped subscriptions whose handlers have not returned, againstMqttClientBuilder.maxSubscriptions(int).longpending()Returns the number of registrations that wait for a connection or for the broker's SUBACK.Returns the registrations that the client has processed, againstMqttClientBuilder.maxSubscriptions(int): the sum ofestablished(),pending(), andremoving().longremoving()Returns the number of registrations whose removal waits for the broker's UNSUBACK or for a connection that discards the session.
-
Method Details
-
registrations
Returns the registrations that the client has processed, againstMqttClientBuilder.maxSubscriptions(int): the sum ofestablished(),pending(), andremoving().- Returns:
- the registrations that the client has processed, against
MqttClientBuilder.maxSubscriptions(int): the sum ofestablished(),pending(), andremoving()
-
established
public long established()Returns the number of registrations that the broker has granted.- Returns:
- the number of registrations that the broker has granted
-
pending
public long pending()Returns the number of registrations that wait for a connection or for the broker's SUBACK.- Returns:
- the number of registrations that wait for a connection or for the broker's SUBACK
-
removing
public long removing()Returns the number of registrations whose removal waits for the broker's UNSUBACK or for a connection that discards the session.- Returns:
- the number of registrations whose removal waits for the broker's UNSUBACK or for a connection that discards the session
-
lanes
Returns the delivery lanes, one for each subscription, including the lanes of stopped subscriptions whose handlers have not returned, againstMqttClientBuilder.maxSubscriptions(int). These are not the application lanes thatDeliveryOptions.lanes(java.util.function.Function)chooses.- Returns:
- the delivery lanes, one for each subscription, including the lanes of
stopped subscriptions whose handlers have not returned, against
MqttClientBuilder.maxSubscriptions(int)
-