begin() and end(Enum) must be called from the same thread so that latency can be computed.
| Modifier and Type | Field and Description |
|---|---|
| private final LongAdder[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public long | Returns: the operation countthe result type type)Implements org. |
| public void | end(T
the operation result result)Overrides org. Implements org. begin()} before.
|
| public long | |
| public String |
| counts | back to summary |
|---|---|
| private final LongAdder[] counts | |
| GeneralOperationStatistic | back to summary |
|---|---|
| pack-priv GeneralOperationStatistic(String name, Set<String> tags, Map<String, ? extends Object> properties, Class<T> type) Create an operation statistics for a given operation result type. | |
| count | back to summary |
|---|---|
| public long count(T type) Implements org. Return the count of operations with the given type.
| |
| end | back to summary |
|---|---|
| public void end(T result) Overrides org. 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(Set<T> types) Implements org.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |