Interface CompositeExecutor


public interface CompositeExecutor
Represents a composite executor composed of a sync and an async 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

      static CompositeExecutor of(SyncExecutor sync)
      Create a composite executor from the provided sync executor and a SimpleAsyncExecutor.
      Parameters:
      sync - the sync executor
      Returns:
      the created composite executor
    • of

      static CompositeExecutor of(SyncExecutor sync, AsyncExecutor async)
      Create a composite executor from the provided task executors.
      Parameters:
      sync - the sync executor
      async - the async executor
      Returns:
      the created composite executor