Package org.asynchttpclient
Class HostStats
- java.lang.Object
-
- org.asynchttpclient.HostStats
-
public class HostStats extends Object
A record class representing the status of connections to some host.
-
-
Constructor Summary
Constructors Constructor Description HostStats(long activeConnectionCount, long idleConnectionCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
long
getHostActiveConnectionCount()
long
getHostConnectionCount()
long
getHostIdleConnectionCount()
int
hashCode()
String
toString()
-
-
-
Method Detail
-
getHostConnectionCount
public long getHostConnectionCount()
- Returns:
- The sum of
getHostActiveConnectionCount()
andgetHostIdleConnectionCount()
, a long representing the total number of connections to this host.
-
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.
-
-