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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.concurrent.Future<?> submit​(java.lang.Runnable task)
      Submits a Runnable task for execution and returns a Future representing that task.
    • Method Detail

      • submit

        java.util.concurrent.Future<?> submit​(@Nonnull
                                              java.lang.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:
        java.util.concurrent.RejectedExecutionException - if the task cannot be scheduled for execution
        java.lang.NullPointerException - if the task is null