Class ClientStats.Connection

java.lang.Object
org.mqtt4j.hato.ClientStats.Connection
Enclosing class:
ClientStats

public static final class ClientStats.Connection extends Object
The connection's state and attempt numbers.
  • Method Details

    • state

      Returns the connection's state.
      Returns:
      the connection's state
    • attempt

      public long attempt()
      Returns the number of the latest connection attempt, as ConnAck.connectionAttempt() and Disconnection.connectionAttempt() number them, or 0 before the first attempt.
      Returns:
      the number of the latest connection attempt, as ConnAck.connectionAttempt() and Disconnection.connectionAttempt() number them, or 0 before the first attempt
    • establishedAttempt

      public long establishedAttempt()
      Returns the number of the attempt that established the latest connection, or 0 if none has. The difference from attempt() counts the attempts since then.
      Returns:
      the number of the attempt that established the latest connection, or 0 if none has
    • droppedNotifications

      public long droppedNotifications()
      Returns a lifetime count of ConnectionListener notifications dropped because the listener fell behind.
      Returns:
      a lifetime count of ConnectionListener notifications dropped because the listener fell behind