V - the result type of method callpublic class MultiCounterCallableOperation<V> extends MultiCounterMonitorableOperation implements Callable<V>
Callable that maintains custom counters for elapsed time
evaluation.
The counters are stored in default time unit (nanoseconds).
NO_SPECIFIC_TYPE, stopwatch| Constructor and Description |
|---|
MultiCounterCallableOperation(Callable<V> targetCallable)
Builds this monitorable operation with a given
Callable. |
MultiCounterCallableOperation(Callable<V> targetCallable,
Counter.Type... types)
Builds this monitorable operation with a given
Callable and specific counter type(s). |
| Modifier and Type | Method and Description |
|---|---|
V |
call()
See
Callable.call(). |
getCounter, getCounters, printStatistics, printStatisticspublic MultiCounterCallableOperation(Callable<V> targetCallable)
Callable.targetCallable - the Callable to be executedpublic MultiCounterCallableOperation(Callable<V> targetCallable, Counter.Type... types)
Callable and specific counter type(s).targetCallable - the Callable to be executedtypes - the counter types to be maintained with the operationCopyright © 2019. All rights reserved.