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()
KvStateRequestStats
reportActiveConnection
in interface KvStateRequestStats
public void reportInactiveConnection()
KvStateRequestStats
reportInactiveConnection
in interface KvStateRequestStats
public void reportRequest()
KvStateRequestStats
reportRequest
in interface KvStateRequestStats
public void reportSuccessfulRequest(long durationTotalMillis)
KvStateRequestStats
reportSuccessfulRequest
in interface KvStateRequestStats
durationTotalMillis
- Duration of the request (in milliseconds).public void reportFailedRequest()
KvStateRequestStats
reportFailedRequest
in interface KvStateRequestStats
public long getNumConnections()
public long getNumRequests()
public long getNumSuccessful()
public long getNumFailed()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.