Usually these metrics measure the latency of a task queuing and the latency a task execution.
| Modifier and Type | Method and Description |
|---|---|
| public default T | Returns: the timer measuring the task executionthe timer measuring the task queuing returned by t)submitted()The submitted task start to use the resource. |
| public default void | |
| public default void | rejected(T
the timer measuring the task queuing returned by t)submitted()The task has been rejected. |
| public default T | Returns: the timer measuring the task queuingA new task has been submitted to access the resource. |
| begin | back to summary |
|---|---|
| public default T begin(T t) The submitted task start to use the resource.
| |
| end | back to summary |
|---|---|
| public default void end(T t, boolean succeeded) The submitted tasks has completed its execution and release the resource.
| |
| rejected | back to summary |
|---|---|
| public default void rejected(T t) The task has been rejected. The underlying resource has probably be shutdown.
| |
| submitted | back to summary |
|---|---|
| public default T submitted() A new task has been submitted to access the resource. This method is called from the submitter context.
| |