Interface WorkflowThreadExecutor


public interface WorkflowThreadExecutor
Abstracts the ThreadPoolExecutor that is used to submit workflow thread tasks to allow higher levels to define additional wrapping logic like worker-wide metric reporting.
  • Method Summary

    Modifier and Type
    Method
    Description
    Submits a Runnable task for execution and returns a Future representing that task.
  • Method Details

    • submit

      Future<?> submit(@Nonnull Runnable task)
      Submits a Runnable task for execution and returns a Future representing that task. The Future's get method will return null upon successful completion.

      This method's descriptor is a 1-1 copy of AbstractExecutorService.submit(Runnable)

      Parameters:
      task - the task to submit
      Returns:
      a Future representing pending completion of the task
      Throws:
      RejectedExecutionException - if the task cannot be scheduled for execution
      NullPointerException - if the task is null