Uses of Interface
java.util.concurrent.Executor
-
Packages that use Executor Package Description com.sun.net.httpserver Provides a simple high-level Http server API, which can be used to build embedded HTTP servers.java.sql Provides the API for accessing and processing data stored in a data source (usually a relational database) using the Java™ programming language.java.util.concurrent Utility classes commonly useful in concurrent programming.javafx.concurrent Provides the set of classes for javafx.task.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.jdk.incubator.http High level HTTP and WebSocket API -
-
Uses of Executor in com.sun.net.httpserver
Methods in com.sun.net.httpserver that return Executor Modifier and Type Method Description abstract Executor
HttpServer. getExecutor()
returns this server's Executor object if one was specified withHttpServer.setExecutor(Executor)
, ornull
if none was specified.Methods in com.sun.net.httpserver with parameters of type Executor Modifier and Type Method Description abstract void
HttpServer. setExecutor(Executor executor)
sets this server'sExecutor
object. -
Uses of Executor in java.sql
Methods in java.sql with parameters of type Executor Modifier and Type Method Description void
Connection. abort(Executor executor)
Terminates an open connection.void
Connection. setNetworkTimeout(Executor executor, int milliseconds)
Sets the maximum period aConnection
or objects created from theConnection
will wait for the database to reply to any one request. -
Uses of Executor in java.util.concurrent
Subinterfaces of Executor in java.util.concurrent Modifier and Type Interface Description interface
ExecutorService
interface
ScheduledExecutorService
AnExecutorService
that can schedule commands to run after a given delay, or to execute periodically.Classes in java.util.concurrent that implement Executor Modifier and Type Class Description class
AbstractExecutorService
Provides default implementations ofExecutorService
execution methods.class
ForkJoinPool
AnExecutorService
for runningForkJoinTask
s.class
ScheduledThreadPoolExecutor
AThreadPoolExecutor
that can additionally schedule commands to run after a given delay, or to execute periodically.class
ThreadPoolExecutor
AnExecutorService
that executes each submitted task using one of possibly several pooled threads, normally configured usingExecutors
factory methods.Methods in java.util.concurrent that return Executor Modifier and Type Method Description Executor
CompletableFuture. defaultExecutor()
Returns the default Executor used for async methods that do not specify an Executor.static Executor
CompletableFuture. delayedExecutor(long delay, TimeUnit unit)
Returns a new Executor that submits a task to the default executor after the given delay (or no delay if non-positive).static Executor
CompletableFuture. delayedExecutor(long delay, TimeUnit unit, Executor executor)
Returns a new Executor that submits a task to the given base executor after the given delay (or no delay if non-positive).Executor
SubmissionPublisher. getExecutor()
Returns the Executor used for asynchronous delivery.Methods in java.util.concurrent with parameters of type Executor Modifier and Type Method Description CompletionStage<Void>
CompletionStage. acceptEitherAsync(CompletionStage<? extends T> other, Consumer<? super T> action, Executor executor)
Returns a new CompletionStage that, when either this or the other given stage complete normally, is executed using the supplied executor, with the corresponding result as argument to the supplied action.<U> CompletionStage<U>
CompletionStage. applyToEitherAsync(CompletionStage<? extends T> other, Function<? super T,U> fn, Executor executor)
Returns a new CompletionStage that, when either this or the other given stage complete normally, is executed using the supplied executor, with the corresponding result as argument to the supplied function.CompletableFuture<T>
CompletableFuture. completeAsync(Supplier<? extends T> supplier, Executor executor)
Completes this CompletableFuture with the result of the given Supplier function invoked from an asynchronous task using the given executor.static Executor
CompletableFuture. delayedExecutor(long delay, TimeUnit unit, Executor executor)
Returns a new Executor that submits a task to the given base executor after the given delay (or no delay if non-positive).<U> CompletionStage<U>
CompletionStage. handleAsync(BiFunction<? super T,Throwable,? extends U> fn, Executor executor)
Returns a new CompletionStage that, when this stage completes either normally or exceptionally, is executed using the supplied executor, with this stage's result and exception as arguments to the supplied function.CompletionStage<Void>
CompletionStage. runAfterBothAsync(CompletionStage<?> other, Runnable action, Executor executor)
Returns a new CompletionStage that, when this and the other given stage both complete normally, executes the given action using the supplied executor.CompletionStage<Void>
CompletionStage. runAfterEitherAsync(CompletionStage<?> other, Runnable action, Executor executor)
Returns a new CompletionStage that, when either this or the other given stage complete normally, executes the given action using the supplied 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.CompletionStage<Void>
CompletionStage. thenAcceptAsync(Consumer<? super T> action, Executor executor)
Returns a new CompletionStage that, when this stage completes normally, is executed using the supplied Executor, with this stage's result as the argument to the supplied action.<U> CompletionStage<Void>
CompletionStage. thenAcceptBothAsync(CompletionStage<? extends U> other, BiConsumer<? super T,? super U> action, Executor executor)
Returns a new CompletionStage that, when this and the other given stage both complete normally, is executed using the supplied executor, with the two results as arguments to the supplied action.<U> CompletionStage<U>
CompletionStage. thenApplyAsync(Function<? super T,? extends U> fn, Executor executor)
Returns a new CompletionStage that, when this stage completes normally, is executed using the supplied Executor, with this stage's result as the argument to the supplied function.<U,V> CompletionStage<V>
CompletionStage. thenCombineAsync(CompletionStage<? extends U> other, BiFunction<? super T,? super U,? extends V> fn, Executor executor)
Returns a new CompletionStage that, when this and the other given stage both complete normally, is executed using the supplied executor, with the two results as arguments to the supplied function.<U> CompletionStage<U>
CompletionStage. thenComposeAsync(Function<? super T,? extends CompletionStage<U>> fn, Executor executor)
Returns a new CompletionStage that is completed with the same value as the CompletionStage returned by the given function, executed using the supplied Executor.CompletionStage<Void>
CompletionStage. thenRunAsync(Runnable action, Executor executor)
Returns a new CompletionStage that, when this stage completes normally, executes the given action using the supplied Executor.CompletionStage<T>
CompletionStage. whenCompleteAsync(BiConsumer<? super T,? super Throwable> action, Executor executor)
Returns a new CompletionStage with the same result or exception as this stage, that executes the given action using the supplied Executor when this stage completes.Constructors in java.util.concurrent with parameters of type Executor Constructor Description ExecutorCompletionService(Executor executor)
Creates an ExecutorCompletionService using the supplied executor for base task execution and aLinkedBlockingQueue
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.SubmissionPublisher(Executor executor, int maxBufferCapacity)
Creates a new SubmissionPublisher using the given Executor for async delivery to subscribers, with the given maximum buffer size for each subscriber, and no handler for Subscriber exceptions in methodonNext
.SubmissionPublisher(Executor executor, int maxBufferCapacity, BiConsumer<? super Flow.Subscriber<? super T>,? super Throwable> handler)
Creates a new SubmissionPublisher using the given Executor for async delivery to subscribers, with the given maximum buffer size for each subscriber, and, if non-null, the given handler invoked when any Subscriber throws an exception in methodonNext
. -
Uses of Executor in javafx.concurrent
Methods in javafx.concurrent that return Executor Modifier and Type Method Description Executor
Service. getExecutor()
Gets the value of the property executor.Methods in javafx.concurrent that return types with arguments of type Executor Modifier and Type Method Description ObjectProperty<Executor>
Service. executorProperty()
The executor to use for running this Service.Methods in javafx.concurrent with parameters of type Executor Modifier and Type Method Description void
Service. setExecutor(Executor value)
Sets the value of the property executor. -
Uses of Executor in javax.management
Constructors in javax.management with parameters of type Executor Constructor Description NotificationBroadcasterSupport(Executor executor)
Constructs a NotificationBroadcasterSupport where each listener is invoked using the givenExecutor
.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 givenExecutor
. -
Uses of Executor in javax.xml.ws
Methods in javax.xml.ws that return Executor Modifier and Type Method Description abstract Executor
Endpoint. getExecutor()
Returns the executor for thisEndpoint
instance.Executor
Service. getExecutor()
Returns the executor for thisService
instance.Methods in javax.xml.ws with parameters of type Executor Modifier and Type Method Description abstract void
Endpoint. setExecutor(Executor executor)
Sets the executor for thisEndpoint
instance.void
Service. setExecutor(Executor executor)
Sets the executor for thisService
instance. -
Uses of Executor in javax.xml.ws.spi
Methods in javax.xml.ws.spi that return Executor Modifier and Type Method Description abstract Executor
ServiceDelegate. getExecutor()
Returns the executor for thisService
instance.Methods in javax.xml.ws.spi with parameters of type Executor Modifier and Type Method Description abstract void
ServiceDelegate. setExecutor(Executor executor)
Sets the executor for thisService
instance. -
Uses of Executor in jdk.incubator.http
Methods in jdk.incubator.http that return types with arguments of type Executor Modifier and Type Method Description abstract Optional<Executor>
HttpClient. executor()
Returns anOptional
containing this client's Executor.Methods in jdk.incubator.http with parameters of type Executor Modifier and Type Method Description abstract HttpClient.Builder
HttpClient.Builder. executor(Executor executor)
Sets the executor to be used for asynchronous and dependent tasks.
-