| Package | Description |
|---|---|
| java.nio.channels |
Defines channels, which represent connections to entities that are capable of performing I/O operations, such as files and sockets; defines selectors, for multiplexed, non-blocking I/O operations.
|
| java.util.concurrent |
Utility classes commonly useful in concurrent programming.
|
| javax.swing |
Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
|
| javax.xml.ws |
This package contains the core JAX-WS APIs.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Future |
AsynchronousServerSocketChannel.accept()
Accepts a connection.
|
abstract Future |
AsynchronousSocketChannel.connect(SocketAddress
Connects this channel.
|
Future |
AsynchronousFileChannel.lock()
Acquires an exclusive lock on this channel's file.
|
abstract Future |
AsynchronousFileChannel.lock(long position, long size, boolean shared)
Acquires a lock on the given region of this channel's file.
|
abstract Future |
AsynchronousSocketChannel.read(ByteBuffer
|
Future |
AsynchronousByteChannel.read(ByteBuffer
Reads a sequence of bytes from this channel into the given buffer.
|
abstract Future |
AsynchronousFileChannel.read(ByteBuffer
Reads a sequence of bytes from this channel into the given buffer, starting at the given file position.
|
abstract Future |
AsynchronousSocketChannel.write(ByteBuffer
|
Future |
AsynchronousByteChannel.write(ByteBuffer
Writes a sequence of bytes to this channel from the given buffer.
|
abstract Future |
AsynchronousFileChannel.write(ByteBuffer
Writes a sequence of bytes to this channel from the given buffer, starting at the given file position.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
RunnableFuture<V>
|
interface |
RunnableScheduledFuture<V>
A
ScheduledFuture that is
Runnable.
|
interface |
ScheduledFuture<V>
A delayed result-bearing action that can be cancelled.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CompletableFuture<T>
A
Future that may be explicitly completed (setting its value and status), and may be used as a
CompletionStage, supporting dependent functions and actions that trigger upon its completion.
|
class |
CountedCompleter<T>
A
ForkJoinTask with a completion action performed when triggered and there are no remaining pending actions.
|
class |
ForkJoinTask<V>
Abstract base class for tasks that run within a
ForkJoinPool.
|
class |
FutureTask<V>
A cancellable asynchronous computation.
|
class |
RecursiveAction
A recursive resultless
ForkJoinTask.
|
class |
RecursiveTask<V>
A recursive result-bearing
ForkJoinTask.
|
| Modifier and Type | Method and Description |
|---|---|
Future |
ExecutorCompletionService.poll()
|
Future |
CompletionService.poll()
Retrieves and removes the Future representing the next completed task, or
null if none are present.
|
Future |
ExecutorCompletionService.poll(long timeout, TimeUnit
|
Future |
CompletionService.poll(long timeout, TimeUnit
Retrieves and removes the Future representing the next completed task, waiting if necessary up to the specified wait time if none are yet present.
|
<T> Future |
ExecutorService.submit(Callable
Submits a value-returning task for execution and returns a Future representing the pending results of the task.
|
<T> Future |
ScheduledThreadPoolExecutor.submit(Callable
|
<T> Future |
AbstractExecutorService.submit(Callable
|
Future |
ExecutorCompletionService.submit(Callable
|
Future |
CompletionService.submit(Callable
Submits a value-returning task for execution and returns a Future representing the pending results of the task.
|
Future |
ExecutorService.submit(Runnable
Submits a Runnable task for execution and returns a Future representing that task.
|
Future |
ScheduledThreadPoolExecutor.submit(Runnable
|
Future |
AbstractExecutorService.submit(Runnable
|
<T> Future |
ExecutorService.submit(Runnable
Submits a Runnable task for execution and returns a Future representing that task.
|
<T> Future |
ScheduledThreadPoolExecutor.submit(Runnable
|
<T> Future |
AbstractExecutorService.submit(Runnable
|
Future |
ExecutorCompletionService.submit(Runnable
|
Future |
CompletionService.submit(Runnable
Submits a Runnable task for execution and returns a Future representing that task.
|
Future |
ExecutorCompletionService.take()
|
Future |
CompletionService.take()
Retrieves and removes the Future representing the next completed task, waiting if none are yet present.
|
| Modifier and Type | Method and Description |
|---|---|
<T> List |
ExecutorService.invokeAll(Collection
Executes the given tasks, returning a list of Futures holding their status and results when all complete.
|
<T> List |
ForkJoinPool.invokeAll(Collection
|
<T> List |
AbstractExecutorService.invokeAll(Collection
|
<T> List |
ExecutorService.invokeAll(Collection
Executes the given tasks, returning a list of Futures holding their status and results when all complete or the timeout expires, whichever happens first.
|
<T> List |
AbstractExecutorService.invokeAll(Collection
|
| Constructor and Description | |
|---|---|
ExecutorCompletionService(Executor
Creates an ExecutorCompletionService using the supplied executor for base task execution and the supplied queue as its completion queue.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SwingWorker<T
An abstract class to perform lengthy GUI-interaction tasks in a background thread.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
Response<T>
The
Response interface provides methods used to obtain the payload and context of a message sent in response to an operation invocation.
|
| Modifier and Type | Method and Description |
|---|---|
Future |
Dispatch.invokeAsync(T msg, AsyncHandler
Invoke a service operation asynchronously.
|