Package org.asynchttpclient
Class ClientStats
- java.lang.Object
-
- org.asynchttpclient.ClientStats
-
public class ClientStats extends Object
A record class representing the state of an (@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 boolean
equals(Object o)
Map<String,HostStats>
getStatsPerHost()
long
getTotalActiveConnectionCount()
long
getTotalConnectionCount()
long
getTotalIdleConnectionCount()
int
hashCode()
String
toString()
-
-
-
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.
-
-