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