1.

What Is A Scheduledexecutorservice?

Answer»

SCHEDULEDEXECUTORSERVICE extends ExecutorService and provides methods that can schedule commands to run after a given delay, or to execute periodically.

It has methods that execute a Runnable or Callable TASK after a specified delay.

  • 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.

ScheduledExecutorService extends ExecutorService and provides methods that can schedule commands to run after a given delay, or to execute periodically.

It has methods that execute a Runnable or Callable task after a specified delay.



Discussion

No Comment Found