Java java.util.concurrent ScheduledExecutorService fields, constructors, methods, implement or subclass

Example usage for Java java.util.concurrent ScheduledExecutorService fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.util.concurrent ScheduledExecutorService.

The text is from its open source code.

Implementation

java.util.concurrent.ScheduledExecutorService has the following implementations.
Click this link to see all its implementation.

Method

booleanawaitTermination(long timeout, TimeUnit unit)
Blocks until all tasks have completed execution after a shutdown request, or the timeout occurs, or the current thread is interrupted, whichever happens first.
voidexecute(Runnable command)
Executes the given command at some time in the future.
booleanisShutdown()
Returns true if this executor has been shut down.
booleanisTerminated()
Returns true if all tasks have completed following shut down.
ScheduledFutureschedule(Runnable command, long delay, TimeUnit unit)
Submits a one-shot task that becomes enabled after the given delay.
ScheduledFutureschedule(Callable callable, long delay, TimeUnit unit)
Submits a value-returning one-shot task that becomes enabled after the given delay.
ScheduledFuturescheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit)
Submits a periodic action that becomes enabled first after the given initial delay, and subsequently with the given period; that is, executions will commence after initialDelay , then initialDelay + period , then initialDelay + 2 * period , and so on.
ScheduledFuturescheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit)
Submits a periodic action that becomes enabled first after the given initial delay, and subsequently with the given delay between the termination of one execution and the commencement of the next.
voidshutdown()
Initiates an orderly shutdown in which previously submitted tasks are executed, but no new tasks will be accepted.
ListshutdownNow()
Attempts to stop all actively executing tasks, halts the processing of waiting tasks, and returns a list of the tasks that were awaiting execution.
Futuresubmit(Runnable task, T result)
Submits a Runnable task for execution and returns a Future representing that task.
Futuresubmit(Callable task)
Submits a value-returning task for execution and returns a Future representing the pending results of the task.