public class AtomicKvStateRequestStats extends Object implements KvStateRequestStats
KvStateRequestStats implementation.| Constructor and Description |
|---|
AtomicKvStateRequestStats() |
| Modifier and Type | Method and Description |
|---|---|
long |
getNumConnections() |
long |
getNumFailed() |
long |
getNumRequests() |
long |
getNumSuccessful() |
void |
reportActiveConnection()
Reports an active connection.
|
void |
reportFailedRequest()
Reports a failure during a request.
|
void |
reportInactiveConnection()
Reports an inactive connection.
|
void |
reportRequest()
Reports an incoming request.
|
void |
reportSuccessfulRequest(long durationTotalMillis)
Reports a successfully handled request.
|
String |
toString() |
public void reportActiveConnection()
KvStateRequestStatsreportActiveConnection in interface KvStateRequestStatspublic void reportInactiveConnection()
KvStateRequestStatsreportInactiveConnection in interface KvStateRequestStatspublic void reportRequest()
KvStateRequestStatsreportRequest in interface KvStateRequestStatspublic void reportSuccessfulRequest(long durationTotalMillis)
KvStateRequestStatsreportSuccessfulRequest in interface KvStateRequestStatsdurationTotalMillis - Duration of the request (in milliseconds).public void reportFailedRequest()
KvStateRequestStatsreportFailedRequest in interface KvStateRequestStatspublic long getNumConnections()
public long getNumRequests()
public long getNumSuccessful()
public long getNumFailed()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.