Class ConnectionStats

java.lang.Object
com.aerospike.client.cluster.ConnectionStats

public final class ConnectionStats extends Object
Connection statistics. Note: InUse plus inPool connections should be equal to the total number of currently open connections, i.e. InUse + inPool == opened - closed
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final int
    Total number of node connections closed since node creation.
    final int
    Initialized connections in connection pool(s) that are not currently active.
    final int
    Active connections from connection pool(s) currently executing commands.
    final int
    Total number of node connections opened since node creation.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ConnectionStats(int inUse, int inPool, int opened, int closed)
    Connection statistics constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Convert statistics to string.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • inUse

      public final int inUse
      Active connections from connection pool(s) currently executing commands.
    • inPool

      public final int inPool
      Initialized connections in connection pool(s) that are not currently active.
    • opened

      public final int opened
      Total number of node connections opened since node creation.
    • closed

      public final int closed
      Total number of node connections closed since node creation.
  • Constructor Details

    • ConnectionStats

      public ConnectionStats(int inUse, int inPool, int opened, int closed)
      Connection statistics constructor.
  • Method Details

    • toString

      public String toString()
      Convert statistics to string.
      Overrides:
      toString in class Object