public interface ContextAwareTaskExecutor extends TaskExecutor
TaskExecutor which is able to decide whether the currently
running code is executing in the context of the executor or not.
CompletionStage, etc.| Modifier and Type | Method and Description |
|---|---|
boolean |
isExecutingInThis()
Returns
true if the calling code is executing in the context of
this executor. |
execute, execute, executeFunction, executeStagedboolean isExecutingInThis()
true if the calling code is executing in the context of
this executor. That is, it is executed by a task submitted to this
executor.
This method can be used to check that a method call is executing in the context it was designed for.
true if the calling code is executing in the context of
this executor, false otherwise