decorateTask(Callable<V> callable, RunnableScheduledFuture<V> task) | Modifies or replaces the task used to execute a callable. |
decorateTask(Runnable runnable, RunnableScheduledFuture<V> task) | Modifies or replaces the task used to execute a runnable. |
execute(Runnable command) | Executes command with zero required delay. |
getContinueExistingPeriodicTasksAfterShutdownPolicy( ) | Get the policy on whether to continue executing existing periodic tasks even when this executor has been shut down. |
getExecuteExistingDelayedTasksAfterShutdownPolicy( ) | Get the policy on whether to execute existing delayed tasks even when this executor has been shut down. |
getQueue() | Returns the task queue used by this executor. |
getRemoveOnCancelPolicy() | Gets the policy on whether cancelled tasks should be immediately removed from the work queue at the time of cancellation. |
schedule(Callable<V> callable, long delay, TimeUnit unit) | Creates and executes a ScheduledFuture that becomes enabled after the given delay. |
schedule(Runnable command, long delay, TimeUnit unit) | Creates and executes a one-shot action that becomes enabled after the given delay. |
scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) | Creates and executes a periodic action that becomes enabled first after the given delay and subsequently with the given period. |
scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) | Creates and executes a periodic action that becomes enabled after the given delay and subsequently with the given delay between the termination of one execution and commencement of the next execution. |
setContinueExistingPeriodicTasksAfterShutdownPolicy(boolean value) | Sets the policy on whether to continue executing existing periodic tasks even when this executor has been shut down. |
setExecuteExistingDelayedTasksAfterShutdownPolicy(boolean value) | Sets the policy on whether to execute existing delayed tasks even when this executor has been shut down. |
setRemoveOnCancelPolicy() | Sets the policy on whether cancelled tasks should be immediately removed from the work queue at the time of cancellation. |
shutdown() | Initiate an orderly shutdown in which previously submitted tasks are executed, but no new tasks will be accepted. |
shutdownNow() | Attempts to stop all actively executing tasks halts the processing of waiting tasks, and returns a list of the tasks that were awaiting execution. |
submit(Callable<T> task) | Submits a value returning task for execution and returns a future representing the pending results of the task. |
submit(Runnable task) | Submits a runnable task for execution and returns a future representing that task. |
submit(Runnable task, T result) | Submits a runnable task for execution and returns a future representing that task. |