Package org.asynchttpclient
Class ClientStats
- java.lang.Object
-
- org.asynchttpclient.ClientStats
-
public class ClientStats extends Object
A record class representing the state of a (@link org.asynchttpclient.AsyncHttpClient).
-
-
Constructor Summary
Constructors Constructor Description ClientStats(Map<String,HostStats> statsPerHost)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Map<String,HostStats>getStatsPerHost()longgetTotalActiveConnectionCount()longgetTotalConnectionCount()longgetTotalIdleConnectionCount()inthashCode()StringtoString()
-
-
-
Method Detail
-
getStatsPerHost
public Map<String,HostStats> getStatsPerHost()
- Returns:
- A map from hostname to statistics on that host's connections. The returned map is unmodifiable.
-
getTotalConnectionCount
public long getTotalConnectionCount()
- Returns:
- The sum of
getTotalActiveConnectionCount()andgetTotalIdleConnectionCount(), a long representing the total number of connections in the connection pool.
-
getTotalActiveConnectionCount
public long getTotalActiveConnectionCount()
- Returns:
- A long representing the number of active connections in the connection pool.
-
getTotalIdleConnectionCount
public long getTotalIdleConnectionCount()
- Returns:
- A long representing the number of idle connections in the connection pool.
-
-