public class AtomicServiceRequestStats extends Object implements ServiceRequestStats
ServiceRequestStats
implementation.Constructor and Description |
---|
AtomicServiceRequestStats() |
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()
ServiceRequestStats
reportActiveConnection
in interface ServiceRequestStats
public void reportInactiveConnection()
ServiceRequestStats
reportInactiveConnection
in interface ServiceRequestStats
public void reportRequest()
ServiceRequestStats
reportRequest
in interface ServiceRequestStats
public void reportSuccessfulRequest(long durationTotalMillis)
ServiceRequestStats
reportSuccessfulRequest
in interface ServiceRequestStats
durationTotalMillis
- Duration of the request (in milliseconds).public void reportFailedRequest()
ServiceRequestStats
reportFailedRequest
in interface ServiceRequestStats
public long getNumConnections()
public long getNumRequests()
public long getNumSuccessful()
public long getNumFailed()
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.