Spec-Zone .ru
спецификации, руководства, описания, API
|
Package | Description |
---|---|
java.sql |
Provides the API for accessing and processing data stored in a
data source (usually a relational database) using the
JavaTM programming language.
|
java.util.concurrent |
Utility classes commonly useful in concurrent programming.
|
javax.management |
Provides the core classes for the Java Management Extensions.
|
javax.xml.ws |
This package contains the core JAX-WS APIs.
|
javax.xml.ws.spi |
This package defines SPIs for JAX-WS.
|
Modifier and Type | Method and Description |
---|---|
void |
Connection.abort(Executor executor)
Terminates an open connection.
|
void |
Connection.setNetworkTimeout(Executor executor,
int milliseconds)
Sets the maximum period a
Connection or
objects created from the Connection
will wait for the database to reply to any one request. |
Modifier and Type | Interface and Description |
---|---|
interface |
ExecutorService
|
interface |
ScheduledExecutorService
An
ExecutorService that can schedule commands to run after a given
delay, or to execute periodically. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractExecutorService
Provides default implementations of
ExecutorService
execution methods. |
class |
ForkJoinPool
An
ExecutorService for running ForkJoinTask s. |
class |
ScheduledThreadPoolExecutor
A
ThreadPoolExecutor that can additionally schedule
commands to run after a given delay, or to execute
periodically. |
class |
ThreadPoolExecutor
An
ExecutorService that executes each submitted task using
one of possibly several pooled threads, normally configured
using Executors factory methods. |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Void> |
CompletableFuture.acceptEitherAsync(CompletableFuture<? extends T> other,
Consumer<? super T> block,
Executor executor)
Returns a new CompletableFuture that is asynchronously completed
when either this or the other given CompletableFuture completes,
after performing the given action with the result of either this
or the other CompletableFuture's result from a task running in
the given executor.
|
<U> CompletableFuture<U> |
CompletableFuture.applyToEitherAsync(CompletableFuture<? extends T> other,
Function<? super T,U> fn,
Executor executor)
Returns a new CompletableFuture that is asynchronously completed
when either this or the other given CompletableFuture completes,
with the result of the given function of either this or the other
CompletableFuture's result from a task running in the
given executor.
|
CompletableFuture<Void> |
CompletableFuture.runAfterBothAsync(CompletableFuture<?> other,
Runnable action,
Executor executor)
Returns a new CompletableFuture that is asynchronously completed
when both this and the other given CompletableFuture complete,
after performing the given action from a task running in the
given executor.
|
CompletableFuture<Void> |
CompletableFuture.runAfterEitherAsync(CompletableFuture<?> other,
Runnable action,
Executor executor)
Returns a new CompletableFuture that is asynchronously completed
when either this or the other given CompletableFuture completes,
after performing the given action from a task running in the
given executor.
|
static CompletableFuture<Void> |
CompletableFuture.runAsync(Runnable runnable,
Executor executor)
Returns a new CompletableFuture that is asynchronously completed
by a task running in the given executor after it runs the given
action.
|
static <U> CompletableFuture<U> |
CompletableFuture.supplyAsync(Supplier<U> supplier,
Executor executor)
Returns a new CompletableFuture that is asynchronously completed
by a task running in the given executor with the value obtained
by calling the given Supplier.
|
CompletableFuture<Void> |
CompletableFuture.thenAcceptAsync(Consumer<? super T> block,
Executor executor)
Returns a new CompletableFuture that is asynchronously completed
when this CompletableFuture completes, after performing the given
action with this CompletableFuture's result from a task running
in the given executor.
|
<U> CompletableFuture<Void> |
CompletableFuture.thenAcceptBothAsync(CompletableFuture<? extends U> other,
BiConsumer<? super T,? super U> block,
Executor executor)
Returns a new CompletableFuture that is asynchronously completed
when both this and the other given CompletableFuture complete,
after performing the given action with the results of the two
CompletableFutures from a task running in the given executor.
|
<U> CompletableFuture<U> |
CompletableFuture.thenApplyAsync(Function<? super T,? extends U> fn,
Executor executor)
Returns a new CompletableFuture that is asynchronously completed
when this CompletableFuture completes, with the result of the
given function of this CompletableFuture's result from a
task running in the given executor.
|
<U,V> CompletableFuture<V> |
CompletableFuture.thenCombineAsync(CompletableFuture<? extends U> other,
BiFunction<? super T,? super U,? extends V> fn,
Executor executor)
Returns a new CompletableFuture that is asynchronously completed
when both this and the other given CompletableFuture complete,
with the result of the given function of the results of the two
CompletableFutures from a task running in the given executor.
|
<U> CompletableFuture<U> |
CompletableFuture.thenComposeAsync(Function<? super T,CompletableFuture<U>> fn,
Executor executor)
Returns a CompletableFuture that upon completion, has the same
value as that produced asynchronously using the given executor
by the given function of this CompletableFuture.
|
CompletableFuture<Void> |
CompletableFuture.thenRunAsync(Runnable action,
Executor executor)
Returns a new CompletableFuture that is asynchronously completed
when this CompletableFuture completes, after performing the given
action from a task running in the given executor.
|
Constructor and Description |
---|
ExecutorCompletionService(Executor executor)
Creates an ExecutorCompletionService using the supplied
executor for base task execution and a
LinkedBlockingQueue as a completion queue. |
ExecutorCompletionService(Executor executor,
BlockingQueue<Future<V>> completionQueue)
Creates an ExecutorCompletionService using the supplied
executor for base task execution and the supplied queue as its
completion queue.
|
Constructor and Description |
---|
NotificationBroadcasterSupport(Executor executor)
Constructs a NotificationBroadcasterSupport where each listener is invoked using
the given
Executor . |
NotificationBroadcasterSupport(Executor executor,
MBeanNotificationInfo... info)
Constructs a NotificationBroadcasterSupport with information about the notifications that may be sent,
and where each listener is invoked using the given
Executor . |
Modifier and Type | Method and Description |
---|---|
abstract Executor |
Endpoint.getExecutor()
Returns the executor for this
Endpoint instance. |
Executor |
Service.getExecutor()
Returns the executor for this
Service instance. |
Modifier and Type | Method and Description |
---|---|
abstract void |
Endpoint.setExecutor(Executor executor)
Sets the executor for this
Endpoint instance. |
void |
Service.setExecutor(Executor executor)
Sets the executor for this
Service instance. |
Modifier and Type | Method and Description |
---|---|
abstract Executor |
ServiceDelegate.getExecutor()
Returns the executor for this
Service instance. |
Modifier and Type | Method and Description |
---|---|
abstract void |
ServiceDelegate.setExecutor(Executor executor)
Sets the executor for this
Service instance. |
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.
DRAFT ea-b92