public interface CompositeExecutor
Represents a composite executor composed of a sync and an async task executor.
-
Method Summary
Modifier and TypeMethodDescriptionasync()Get the async task executor.static CompositeExecutorof(SyncExecutor sync) Create a composite executor from the provided sync executor and aSimpleAsyncExecutor.static CompositeExecutorof(SyncExecutor sync, AsyncExecutor async) Create a composite executor from the provided task executors.default voidshutdown()Shutdown both executors.sync()Get the sync task executor.
-
Method Details
-
sync
SyncExecutor sync()Get the sync task executor.- Returns:
- the sync task executor
-
async
AsyncExecutor async()Get the async task executor.- Returns:
- the async task executor
-
shutdown
default void shutdown()Shutdown both executors. -
of
Create a composite executor from the provided sync executor and aSimpleAsyncExecutor.- Parameters:
sync- the sync executor- Returns:
- the created composite executor
-
of
Create a composite executor from the provided task executors.- Parameters:
sync- the sync executorasync- the async executor- Returns:
- the created composite executor
-