public interface WorkQueue extends Executor
| Modifier and Type | Method and Description | 
|---|---|
| void | execute(Runnable work,
       long timeout)Submits a work item for execution at some time in the future, waiting for up to a
 specified amount of time for the item to be accepted. | 
| void | schedule(Runnable work,
        long delay)Schedules a work item for execution at some time in the future. | 
void execute(Runnable work, long timeout)
work - the workitem to submit for execution.timeout - the maximum amount of time (in milliseconds) to wait for it to be accepted.RejectedExecutionExceptionNullPointerExceptionvoid schedule(Runnable work, long delay)
work - the task to submit for execution.delay - the delay before the task is executedRejectedExecutionExceptionNullPointerExceptionApache CXF