Class ClientStats.Receiving
java.lang.Object
org.mqtt4j.hato.ClientStats.Receiving
- Enclosing class:
ClientStats
Incoming publications, their deliveries, and their acknowledgement exchanges.
Each unfinished QoS 1 or QoS 2 reception counts in one stage: awaiting its conditions
(a handler, a hand-off acceptor, or ack(), as its AckMode
requires), awaiting its turn (its acknowledgement is due but follows an earlier reception,
in receive order, or waits for send capacity), awaiting the write of its PUBACK or PUBREC,
awaiting PUBREL, or awaiting the write of its PUBCOMP.
-
Method Summary
Modifier and TypeMethodDescriptionlongReturns the number of unfinished receptions whose PUBACK or PUBREC awaits its write.longReturns the number of QoS 2 receptions whose PUBCOMP awaits its write.longReturns the number of unfinished receptions whose acknowledgement awaits its conditions.longReturns the number of QoS 2 receptions that await the broker's PUBREL, which has no deadline.longReturns the number of unfinished receptions whose acknowledgement is due but awaits its turn.longReturns a lifetime count of the deliveries that subscriptions took: one for each copy of a received publication that a subscription's buffer took.dropped()Returns lifetime counts of deliveries that left their subscription unprocessed, by reason, across all subscriptions, including those that have ended.Returns the bytes that the deliveries the client holds count against its limit for all subscriptions: the size of each received PUBLISH and an allowance for each of its properties, which take more memory than their encoding.Returns the acknowledgement conditions that the client holds for unfinished QoS 1 and QoS 2 receptions, one for each subscription that took a copy, against its limit for all subscriptions.Returns the deliveries that the client holds, against its limit for all subscriptions.Returns how long the oldest reception that awaits its conditions has done so, which also holds back the acknowledgements counted as awaiting their turn; empty if none does.Returns how long the oldest reception that awaits PUBREL has done so; empty if none does.longReturns a lifetime count of the PUBLISH packets received atqos, retransmissions included.Returns all unfinished QoS 1 and QoS 2 receptions, against the client's limit, which includes receptions that a persistent session carries across connections.longReturns a lifetime count of received publications that matched no subscription.longunrouted()Returns a lifetime count of received QoS 0 publications that the client dropped before routing them, because they arrived faster than it could route them.
-
Method Details
-
publishes
Returns a lifetime count of the PUBLISH packets received atqos, retransmissions included.- Parameters:
qos- the QoS of the packets to count- Returns:
- a lifetime count of the PUBLISH packets received at
qos, retransmissions included
-
unmatched
public long unmatched()Returns a lifetime count of received publications that matched no subscription.- Returns:
- a lifetime count of received publications that matched no subscription
-
unrouted
public long unrouted()Returns a lifetime count of received QoS 0 publications that the client dropped before routing them, because they arrived faster than it could route them. They reach no subscription, andpublishes(Qos)counts them.- Returns:
- a lifetime count of received QoS 0 publications that the client dropped before routing them, because they arrived faster than it could route them
-
deliveries
public long deliveries()Returns a lifetime count of the deliveries that subscriptions took: one for each copy of a received publication that a subscription's buffer took. A retransmission that joins a copy still held adds none, and copies that did not fit, counted underClientStats.DropReason.SUBSCRIPTION_FULLandClientStats.DropReason.CLIENT_FULL, are not included.- Returns:
- a lifetime count of the deliveries that subscriptions took: one for each copy of a received publication that a subscription's buffer took
-
dropped
Returns lifetime counts of deliveries that left their subscription unprocessed, by reason, across all subscriptions, including those that have ended.- Returns:
- lifetime counts of deliveries that left their subscription unprocessed, by reason, across all subscriptions, including those that have ended
-
heldDeliveries
Returns the deliveries that the client holds, against its limit for all subscriptions.- Returns:
- the deliveries that the client holds, against its limit for all subscriptions
-
heldBytes
Returns the bytes that the deliveries the client holds count against its limit for all subscriptions: the size of each received PUBLISH and an allowance for each of its properties, which take more memory than their encoding.- Returns:
- the bytes that the deliveries the client holds count against its limit for all subscriptions: the size of each received PUBLISH and an allowance for each of its properties, which take more memory than their encoding
-
heldConditions
Returns the acknowledgement conditions that the client holds for unfinished QoS 1 and QoS 2 receptions, one for each subscription that took a copy, against its limit for all subscriptions. A reception keeps them until it ends, also after its deliveries were processed, so receptions that wait for an earlier one keep theirs. A reception that would exceed the limit ends the connection, counted underClientStats.OverloadCause.DELIVERIES.- Returns:
- the acknowledgement conditions that the client holds for unfinished QoS 1 and QoS 2 receptions, one for each subscription that took a copy, against its limit for all subscriptions
-
awaitingConditions
public long awaitingConditions()Returns the number of unfinished receptions whose acknowledgement awaits its conditions.- Returns:
- the number of unfinished receptions whose acknowledgement awaits its conditions
-
awaitingTurn
public long awaitingTurn()Returns the number of unfinished receptions whose acknowledgement is due but awaits its turn.- Returns:
- the number of unfinished receptions whose acknowledgement is due but awaits its turn
-
awaitingAcknowledgementWrite
public long awaitingAcknowledgementWrite()Returns the number of unfinished receptions whose PUBACK or PUBREC awaits its write.- Returns:
- the number of unfinished receptions whose PUBACK or PUBREC awaits its write
-
awaitingRelease
public long awaitingRelease()Returns the number of QoS 2 receptions that await the broker's PUBREL, which has no deadline.- Returns:
- the number of QoS 2 receptions that await the broker's PUBREL, which has no deadline
-
awaitingCompletionWrite
public long awaitingCompletionWrite()Returns the number of QoS 2 receptions whose PUBCOMP awaits its write.- Returns:
- the number of QoS 2 receptions whose PUBCOMP awaits its write
-
receptions
Returns all unfinished QoS 1 and QoS 2 receptions, against the client's limit, which includes receptions that a persistent session carries across connections.- Returns:
- all unfinished QoS 1 and QoS 2 receptions, against the client's limit, which includes receptions that a persistent session carries across connections
-
oldestAwaitingConditions
Returns how long the oldest reception that awaits its conditions has done so, which also holds back the acknowledgements counted as awaiting their turn; empty if none does.- Returns:
- how long the oldest reception that awaits its conditions has done so, which also holds back the acknowledgements counted as awaiting their turn; empty if none does
-
oldestAwaitingRelease
-