Implementation Note
begin() and end(Enum) must be called from the same thread so that latency can be computed.
| Modifier and Type | Field and Description |
|---|---|
| public final String | |
| private final ThreadLocal | |
| public final Map | |
| public final Set | |
| public final Class |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | begin()
Implements org. |
| public void | end(T
the operation result result)Implements org. begin()} before.
|
| public long | |
| public Class |
| name | back to summary |
|---|---|
public final String name
| |
| operationStartTime | back to summary |
|---|---|
| private final ThreadLocal<Long> operationStartTime | |
| properties | back to summary |
|---|---|
public final Map<String, Object> properties
| |
| tags | back to summary |
|---|---|
public final Set<String> tags
| |
| type | back to summary |
|---|---|
public final Class<T> type
| |
| AbstractOperationStatistic | back to summary |
|---|---|
| pack-priv AbstractOperationStatistic(String name, Set<String> tags, Map<String, ? extends Object> properties, Class<T> type) Create an operation statistics for a given operation result type. | |
| begin | back to summary |
|---|---|
| public void begin() Implements org. Doc from org. Called immediately prior to the operation beginning.
| |
| end | back to summary |
|---|---|
| public void end(T result) Implements org. Doc from org. Called immediately after the operation completes with no interesting parameters, and with the same thread the called {
| |
| sum | back to summary |
|---|---|
| public long sum() Implements org.
| |
| type | back to summary |
|---|---|
| public Class Implements org.
| |