static class ResourceMethodStatisticsImpl.Builder
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private ResourceMethodStatisticsImpl |
cached |
private java.util.concurrent.atomic.AtomicReference<ExecutionStatisticsImpl.Builder> |
requestExecutionStatisticsBuilder |
private ResourceMethod |
resourceMethod |
private java.util.concurrent.atomic.AtomicReference<ExecutionStatisticsImpl.Builder> |
resourceMethodExecutionStatisticsBuilder |
| Constructor and Description |
|---|
Builder(ResourceMethod resourceMethod)
Create a new builder instance.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
addResourceMethodExecution(long methodStartTime,
long methodDuration,
long requestStartTime,
long requestDuration)
Add execution of the resource method to the statistics.
|
(package private) ResourceMethodStatisticsImpl |
build()
Build an instance of resource method statistics.
|
private final ResourceMethod resourceMethod
private final java.util.concurrent.atomic.AtomicReference<ExecutionStatisticsImpl.Builder> resourceMethodExecutionStatisticsBuilder
private final java.util.concurrent.atomic.AtomicReference<ExecutionStatisticsImpl.Builder> requestExecutionStatisticsBuilder
private volatile ResourceMethodStatisticsImpl cached
Builder(ResourceMethod resourceMethod)
resourceMethod - Resource method for which statistics are evaluated.ResourceMethodStatisticsImpl build()
void addResourceMethodExecution(long methodStartTime,
long methodDuration,
long requestStartTime,
long requestDuration)
methodStartTime - Time spent on execution of resource method itself (Unix timestamp format).methodDuration - Time of execution of the resource method.requestStartTime - Time of whole request processing (from receiving the request until writing the response). (Unix
timestamp format)requestDuration - Time when the request matching to the executed resource method has been received by Jersey.