Package org.jtrim2.executor
Interface ContextAwareTaskExecutorService
- All Superinterfaces:
ContextAwareTaskExecutor,Executor,TaskExecutor,TaskExecutorService
- All Known Subinterfaces:
MonitorableTaskExecutorService
- All Known Implementing Classes:
SingleThreadedExecutor,SyncTaskExecutor,ThreadPoolTaskExecutor
public interface ContextAwareTaskExecutorService
extends TaskExecutorService, ContextAwareTaskExecutor
Defines a
TaskExecutorService which is able to decide whether the
currently running code is executing in the context of the executor or not.
Thread safety
Implementations of this interface are required to be safely accessible from multiple threads concurrently.Synchronization transparency
The methods of this interface are not required to be synchronization transparent because they may execute tasks, completion handlers tasks, etc.-
Method Summary
Methods inherited from interface org.jtrim2.executor.ContextAwareTaskExecutor
isExecutingInThisMethods inherited from interface org.jtrim2.executor.TaskExecutor
execute, execute, executeFunction, executeStagedMethods inherited from interface org.jtrim2.executor.TaskExecutorService
addTerminateListener, awaitTermination, isShutdown, isTerminated, shutdown, shutdownAndCancel, tryAwaitTermination