Class ClientStats.Sending
java.lang.Object
org.mqtt4j.hato.ClientStats.Sending
- Enclosing class:
ClientStats
Outgoing writes and publication exchanges.
-
Method Summary
Modifier and TypeMethodDescriptionlongReturns the number of QoS 1 publications that await PUBACK, including those that wait to be sent.longReturns the number of QoS 2 exchanges that await PUBCOMP.longReturns the number of QoS 2 publications that await PUBREC, including those that wait to be sent.Returns the bytes that unfinished publications keep, against their limit: a persistent session keeps a publication until PUBACK or PUBREC, and a nonpersistent one only while it waits to be sent.Returns how long the oldest response that the client awaits, a PUBACK, PUBREC, PUBCOMP, SUBACK, or UNSUBACK, has been awaited since the write that it answers completed; empty if none is awaited.Returns the operation capacity in use, against its limit.Returns all unfinished QoS 1 and QoS 2 publications, againstMqttClientBuilder.maxInflightPublishes(int).Returns the bytes of the writes counted byqueuedWrites(), against the send queue's limit.Returns the writes of any packet that the send queue accepted and has not written yet, against its limit.quota()Returns how many more QoS 1 and QoS 2 publications the established MQTT 5.0 connection lets the client have in progress, within the broker's Receive Maximum; empty without an established MQTT 5.0 connection.
-
Method Details
-
operations
Returns the operation capacity in use, against its limit. A publication holds a slot until just before its future completes, so its continuations can start another operation in its place, and so does each concurrentMqttClient.connect()orMqttClient.disconnect()call beyond the first of each.- Returns:
- the operation capacity in use, against its limit
-
queuedWrites
Returns the writes of any packet that the send queue accepted and has not written yet, against its limit.- Returns:
- the writes of any packet that the send queue accepted and has not written yet, against its limit
-
queuedBytes
Returns the bytes of the writes counted byqueuedWrites(), against the send queue's limit.- Returns:
- the bytes of the writes counted by
queuedWrites(), against the send queue's limit
-
awaitingPubAck
public long awaitingPubAck()Returns the number of QoS 1 publications that await PUBACK, including those that wait to be sent.- Returns:
- the number of QoS 1 publications that await PUBACK, including those that wait to be sent
-
awaitingPubRec
public long awaitingPubRec()Returns the number of QoS 2 publications that await PUBREC, including those that wait to be sent.- Returns:
- the number of QoS 2 publications that await PUBREC, including those that wait to be sent
-
awaitingPubComp
public long awaitingPubComp()Returns the number of QoS 2 exchanges that await PUBCOMP.- Returns:
- the number of QoS 2 exchanges that await PUBCOMP
-
publications
Returns all unfinished QoS 1 and QoS 2 publications, againstMqttClientBuilder.maxInflightPublishes(int).- Returns:
- all unfinished QoS 1 and QoS 2 publications, against
MqttClientBuilder.maxInflightPublishes(int)
-
keptBytes
Returns the bytes that unfinished publications keep, against their limit: a persistent session keeps a publication until PUBACK or PUBREC, and a nonpersistent one only while it waits to be sent.- Returns:
- the bytes that unfinished publications keep, against their limit: a persistent session keeps a publication until PUBACK or PUBREC, and a nonpersistent one only while it waits to be sent
-
quota
Returns how many more QoS 1 and QoS 2 publications the established MQTT 5.0 connection lets the client have in progress, within the broker's Receive Maximum; empty without an established MQTT 5.0 connection.- Returns:
- how many more QoS 1 and QoS 2 publications the established MQTT 5.0 connection lets the client have in progress, within the broker's Receive Maximum; empty without an established MQTT 5.0 connection
-
oldestResponseWait
Returns how long the oldest response that the client awaits, a PUBACK, PUBREC, PUBCOMP, SUBACK, or UNSUBACK, has been awaited since the write that it answers completed; empty if none is awaited. The response timeout ofMqttClientBuilder.responseTimeout(Duration)counts from the same time.- Returns:
- how long the oldest response that the client awaits, a PUBACK, PUBREC, PUBCOMP, SUBACK, or UNSUBACK, has been awaited since the write that it answers completed; empty if none is awaited
-