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

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

Introduction

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

The text is from its open source code.

Implementation

java.util.concurrent.ExecutorService 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.
ClassgetClass()
Returns the runtime class of this Object .
List>invokeAll(Collection> tasks)
Executes the given tasks, returning a list of Futures holding their status and results when all complete.
List>invokeAll(Collection> tasks, long timeout, TimeUnit unit)
Executes the given tasks, returning a list of Futures holding their status and results when all complete or the timeout expires, whichever happens first.
TinvokeAny(Collection> tasks)
Executes the given tasks, returning the result of one that has completed successfully (i.e., without throwing an exception), if any do.
booleanisShutdown()
Returns true if this executor has been shut down.
booleanisTerminated()
Returns true if all tasks have completed following shut down.
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(Callable task)
Submits a value-returning task for execution and returns a Future representing the pending results of the task.
Futuresubmit(Runnable task)
Submits a Runnable task for execution and returns a Future representing that task.
Futuresubmit(Runnable task, T result)
Submits a Runnable task for execution and returns a Future representing that task.
StringtoString()
Returns a string representation of the object.