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
-
Method Details
-
submit
Submits a Runnable task for execution and returns a Future representing that task. The Future'sgetmethod will returnnullupon 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 executionNullPointerException- if the task is null
-