public interface PoolMetrics<T> extends Metrics
Usually these metrics measure the latency of a task queuing and the latency a task execution.
Modifier and Type | Method and Description |
---|---|
T |
begin(T t)
The submitted task start to use the resource.
|
void |
end(T t,
boolean succeeded)
The submitted tasks has completed its execution and release the resource.
|
void |
rejected(T t)
The task has been rejected.
|
T |
submitted()
A new task has been submitted to access the resource.
|
T submitted()
T begin(T t)
t
- the timer measuring the task queuing returned by submitted()
void rejected(T t)
t
- the timer measuring the task queuing returned by submitted()
Copyright © 2017. All rights reserved.