Uses of Interface
java.util.concurrent.Executor
-
Packages that use Executor 软件包 描述 com.sun.net.httpserver 提供一个简单的高级Http服务器API,可用于构建嵌入式HTTP服务器。java.sql 提供使用Java编程语言访问和处理存储在数据源(通常是关系数据库)中的数据的API。java.util.concurrent 实用程序类通常用于并发编程。javafx.concurrent 提供javafx.task的一组类。javax.management 提供Java管理扩展的核心类。javax.xml.ws 此软件包包含核心JAX-WS API。javax.xml.ws.spi 此套件为JAX-WS定义了SPI。jdk.incubator.http 高级HTTP和WebSocket API -
-
Uses of Executor in com.sun.net.httpserver
Methods in com.sun.net.httpserver that return Executor Modifier and Type 方法 描述 abstract Executor
HttpServer. getExecutor()
如果指定了HttpServer.setExecutor(Executor)
或null
如果没有指定),则返回此服务器的Executor对象。Methods in com.sun.net.httpserver with parameters of type Executor Modifier and Type 方法 描述 abstract void
HttpServer. setExecutor(Executor executor)
设置此服务器的Executor
对象。 -
Uses of Executor in java.sql
Methods in java.sql with parameters of type Executor Modifier and Type 方法 描述 void
Connection. abort(Executor executor)
终止打开的连接。void
Connection. setNetworkTimeout(Executor executor, int milliseconds)
设置Connection
的最大周期或从Connection
创建的Connection
将等待数据库回复任何一个请求。 -
Uses of Executor in java.util.concurrent
Subinterfaces of Executor in java.util.concurrent Modifier and Type 接口 描述 interface
ExecutorService
interface
ScheduledExecutorService
一个ExecutorService
,可以调度命令在给定的延迟之后运行,或定期执行。Classes in java.util.concurrent that implement Executor Modifier and Type Class 描述 class
AbstractExecutorService
提供ExecutorService
执行方法的默认实现。class
ForkJoinPool
一个ExecutorService
,运行ForkJoinTask
s。class
ScheduledThreadPoolExecutor
AThreadPoolExecutor
可以额外地调度命令在给定的延迟之后运行,或者定期执行。class
ThreadPoolExecutor
一个ExecutorService
,使用可能的几个合并的线程执行每个提交的任务,通常使用Executors
工厂方法配置。Methods in java.util.concurrent that return Executor Modifier and Type 方法 描述 Executor
CompletableFuture. defaultExecutor()
返回用于不指定Executor的异步方法的默认Executor。static Executor
CompletableFuture. delayedExecutor(long delay, TimeUnit unit)
返回一个新的执行程序,它在给定的延迟之后将任务提交给默认的执行程序(或者如果不为正,则不会延迟)。static Executor
CompletableFuture. delayedExecutor(long delay, TimeUnit unit, Executor executor)
返回一个新的Executor,它在给定的延迟之后向给定的基本执行器提交一个任务(或者如果非正的则不会延迟)。Executor
SubmissionPublisher. getExecutor()
返回用于异步传递的执行程序。Methods in java.util.concurrent with parameters of type Executor Modifier and Type 方法 描述 CompletableFuture<Void>
CompletableFuture. acceptEitherAsync(CompletionStage<? extends T> other, Consumer<? super T> action, Executor executor)
CompletionStage<Void>
CompletionStage. acceptEitherAsync(CompletionStage<? extends T> other, Consumer<? super T> action, Executor executor)
返回一个新的CompletionStage,当这个或另一个给定阶段正常完成时,使用提供的执行器执行,其中相应的结果作为参数提供的操作。<U> CompletableFuture<U>
CompletableFuture. applyToEitherAsync(CompletionStage<? extends T> other, Function<? super T,U> fn, Executor executor)
<U> CompletionStage<U>
CompletionStage. applyToEitherAsync(CompletionStage<? extends T> other, Function<? super T,U> fn, Executor executor)
返回一个新的CompletionStage,当这个或另一个给定阶段正常完成时,将使用提供的执行器执行,其中相应的结果作为参数提供给函数。CompletableFuture<T>
CompletableFuture. completeAsync(Supplier<? extends T> supplier, Executor executor)
使用给定的执行器从异步任务调用给定的供应商函数的结果来完成此CompletableFuture。static Executor
CompletableFuture. delayedExecutor(long delay, TimeUnit unit, Executor executor)
返回一个新的Executor,它在给定的延迟之后向给定的基本执行器提交一个任务(或者如果非正的则不会延迟)。<U> CompletableFuture<U>
CompletableFuture. handleAsync(BiFunction<? super T,Throwable,? extends U> fn, Executor executor)
<U> CompletionStage<U>
CompletionStage. handleAsync(BiFunction<? super T,Throwable,? extends U> fn, Executor executor)
返回一个新的CompletionStage,当此阶段正常或异常完成时,将使用提供的执行程序执行此阶段的结果和异常作为提供的函数的参数。CompletableFuture<Void>
CompletableFuture. runAfterBothAsync(CompletionStage<?> other, Runnable action, Executor executor)
CompletionStage<Void>
CompletionStage. runAfterBothAsync(CompletionStage<?> other, Runnable action, Executor executor)
返回一个新的CompletionStage,当这个和另一个给定的阶段都正常完成时,使用提供的执行器执行给定的动作。CompletableFuture<Void>
CompletableFuture. runAfterEitherAsync(CompletionStage<?> other, Runnable action, Executor executor)
CompletionStage<Void>
CompletionStage. runAfterEitherAsync(CompletionStage<?> other, Runnable action, Executor executor)
返回一个新的CompletionStage,当这个或另一个给定阶段正常完成时,使用提供的执行器执行给定的操作。static CompletableFuture<Void>
CompletableFuture. runAsync(Runnable runnable, Executor executor)
返回一个新的CompletableFuture,它在运行给定操作之后由在给定执行程序中运行的任务异步完成。static <U> CompletableFuture<U>
CompletableFuture. supplyAsync(Supplier<U> supplier, Executor executor)
返回一个新的CompletableFuture,由给定执行器中运行的任务异步完成,并通过调用给定的供应商获得的值。CompletableFuture<Void>
CompletableFuture. thenAcceptAsync(Consumer<? super T> action, Executor executor)
CompletionStage<Void>
CompletionStage. thenAcceptAsync(Consumer<? super T> action, Executor executor)
返回一个新的CompletionStage,当此阶段正常完成时,将使用提供的执行程序执行此阶段的结果作为提供的操作的参数。<U> CompletableFuture<Void>
CompletableFuture. thenAcceptBothAsync(CompletionStage<? extends U> other, BiConsumer<? super T,? super U> action, Executor executor)
<U> CompletionStage<Void>
CompletionStage. thenAcceptBothAsync(CompletionStage<? extends U> other, BiConsumer<? super T,? super U> action, Executor executor)
返回一个新的CompletionStage,当这个和另一个给定的阶段都正常完成时,将使用提供的执行器执行,其中两个结果作为提供的操作的参数。<U> CompletableFuture<U>
CompletableFuture. thenApplyAsync(Function<? super T,? extends U> fn, Executor executor)
<U> CompletionStage<U>
CompletionStage. thenApplyAsync(Function<? super T,? extends U> fn, Executor executor)
返回一个新的CompletionStage,当此阶段正常完成时,将使用提供的执行程序执行此阶段的结果作为提供函数的参数。<U,V> CompletableFuture<V>
CompletableFuture. thenCombineAsync(CompletionStage<? extends U> other, BiFunction<? super T,? super U,? extends V> fn, Executor executor)
<U,V> CompletionStage<V>
CompletionStage. thenCombineAsync(CompletionStage<? extends U> other, BiFunction<? super T,? super U,? extends V> fn, Executor executor)
返回一个新的CompletionStage,当这个和另一个给定的阶段都正常完成时,使用提供的执行器执行,其中两个结果作为提供的函数的参数。<U> CompletableFuture<U>
CompletableFuture. thenComposeAsync(Function<? super T,? extends CompletionStage<U>> fn, Executor executor)
<U> CompletionStage<U>
CompletionStage. thenComposeAsync(Function<? super T,? extends CompletionStage<U>> fn, Executor executor)
返回一个新的CompletionStage,其完成值与给定函数返回的CompletionStage值相同,并使用提供的Executor执行。CompletableFuture<Void>
CompletableFuture. thenRunAsync(Runnable action, Executor executor)
CompletionStage<Void>
CompletionStage. thenRunAsync(Runnable action, Executor executor)
返回一个新的CompletionStage,当此阶段正常完成时,使用提供的执行程序执行给定的操作。CompletableFuture<T>
CompletableFuture. whenCompleteAsync(BiConsumer<? super T,? super Throwable> action, Executor executor)
CompletionStage<T>
CompletionStage. whenCompleteAsync(BiConsumer<? super T,? super Throwable> action, Executor executor)
返回与此阶段相同结果或异常的新CompletionStage,当此阶段完成时,使用提供的执行程序执行给定操作。Constructors in java.util.concurrent with parameters of type Executor Constructor 描述 ExecutorCompletionService(Executor executor)
使用提供的执行程序创建一个ExecutorCompletionService,用于执行基本任务,一个LinkedBlockingQueue
作为完成队列。ExecutorCompletionService(Executor executor, BlockingQueue<Future<V>> completionQueue)
使用提供的执行程序创建一个ExecutorCompletionService,用于执行基本任务,并将提供的队列作为其完成队列。SubmissionPublisher(Executor executor, int maxBufferCapacity)
使用给定的执行程序创建一个新的提交发布者,以便为订户提供异步传递,每个订户具有给定的最大缓冲区大小,方法onNext
中没有用于订阅者异常的处理程序。SubmissionPublisher(Executor executor, int maxBufferCapacity, BiConsumer<? super Flow.Subscriber<? super T>,? super Throwable> handler)
使用给定的Executor创建一个新的SubmissionPublisher,为订户提供异步传递,给定每个订户的最大缓冲区大小,如果非空,则在任何订阅者在方法onNext
中引发异常时调用给定的处理程序。 -
Uses of Executor in javafx.concurrent
Methods in javafx.concurrent that return Executor Modifier and Type 方法 描述 Executor
Service. getExecutor()
获取属性执行器的值。Methods in javafx.concurrent that return types with arguments of type Executor Modifier and Type 方法 描述 ObjectProperty<Executor>
Service. executorProperty()
执行者用于运行此服务。Methods in javafx.concurrent with parameters of type Executor Modifier and Type 方法 描述 void
Service. setExecutor(Executor value)
设置属性执行器的值。 -
Uses of Executor in javax.management
Constructors in javax.management with parameters of type Executor Constructor 描述 NotificationBroadcasterSupport(Executor executor)
NotificationBroadcasterSupport(Executor executor, MBeanNotificationInfo... info)
-
Uses of Executor in javax.xml.ws
Methods in javax.xml.ws that return Executor Modifier and Type 方法 描述 abstract Executor
Endpoint. getExecutor()
返回此Endpoint
实例的执行者。Executor
Service. getExecutor()
返回此Service
实例的执行器。Methods in javax.xml.ws with parameters of type Executor Modifier and Type 方法 描述 abstract void
Endpoint. setExecutor(Executor executor)
设置这个Endpoint
实例的执行器。void
Service. setExecutor(Executor executor)
设置这个Service
实例的执行器。 -
Uses of Executor in javax.xml.ws.spi
Methods in javax.xml.ws.spi that return Executor Modifier and Type 方法 描述 abstract Executor
ServiceDelegate. getExecutor()
返回这个Service
实例的执行器。Methods in javax.xml.ws.spi with parameters of type Executor Modifier and Type 方法 描述 abstract void
ServiceDelegate. setExecutor(Executor executor)
设置这个Service
实例的执行器。 -
Uses of Executor in jdk.incubator.http
Methods in jdk.incubator.http that return Executor Modifier and Type 方法 描述 abstract Executor
HttpClient. executor()
返回此客户端上设置的Executor
。Methods in jdk.incubator.http with parameters of type Executor Modifier and Type 方法 描述 abstract HttpClient.Builder
HttpClient.Builder. executor(Executor executor)
Sets the executor to be used for asynchronous tasks.
-