ScheduledThreadPoolExecutor.decorateTask

Modifies or replaces the task used to execute a runnable. This method can be used to override the concrete class used for managing internal tasks. The default implementation simply returns the given task.

@param runnable the submitted Runnable @param task the task created to execute the runnable @param (V) the type of the task's result @return a task that can execute the runnable

  1. RunnableScheduledFuture!(V) decorateTask(Runnable runnable, RunnableScheduledFuture!(V) task)
    class ScheduledThreadPoolExecutor
    protected
    decorateTask
    (
    V
    )
  2. RunnableScheduledFuture!(V) decorateTask(Callable!(V) callable, RunnableScheduledFuture!(V) task)

Meta