Class HostStats


  • public class HostStats
    extends Object
    A record class representing the status of connections to some host.
    • Constructor Detail

      • HostStats

        public HostStats​(long activeConnectionCount,
                         long idleConnectionCount)
    • Method Detail

      • getHostActiveConnectionCount

        public long getHostActiveConnectionCount()
        Returns:
        A long representing the number of active connections to the host.
      • getHostIdleConnectionCount

        public long getHostIdleConnectionCount()
        Returns:
        A long representing the number of idle connections in the connection pool.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object