Uses of Interface
java.util.concurrent.ExecutorService
-
Packages that use ExecutorService 软件包 描述 java.nio.channels 定义通道,表示与能够执行I / O操作的实体的连接,例如文件和套接字; 定义选择器,用于多路复用,非阻塞I / O操作。java.nio.channels.spi java.nio.channels程序包的服务提供程序类。java.nio.file.spi java.nio.file程序包的服务提供程序类。java.util.concurrent 实用类通常在并发编程中有用。 -
-
Uses of ExecutorService in java.nio.channels
Methods in java.nio.channels with parameters of type ExecutorService 变量和类型 方法 描述 static AsynchronousFileChannelAsynchronousFileChannel. open(Path file, Set<? extends OpenOption> options, ExecutorService executor, FileAttribute<?>... attrs)打开或创建用于读取和/或写入的文件,返回异步文件通道以访问该文件。static AsynchronousChannelGroupAsynchronousChannelGroup. withCachedThreadPool(ExecutorService executor, int initialSize)创建具有给定线程池的异步通道组,该线程池根据需要创建新线程。static AsynchronousChannelGroupAsynchronousChannelGroup. withThreadPool(ExecutorService executor)创建具有给定线程池的异步通道组。 -
Uses of ExecutorService in java.nio.channels.spi
Methods in java.nio.channels.spi with parameters of type ExecutorService 变量和类型 方法 描述 abstract AsynchronousChannelGroupAsynchronousChannelProvider. openAsynchronousChannelGroup(ExecutorService executor, int initialSize)使用给定的线程池构造一个新的异步通道组。 -
Uses of ExecutorService in java.nio.file.spi
Methods in java.nio.file.spi with parameters of type ExecutorService 变量和类型 方法 描述 AsynchronousFileChannelFileSystemProvider. newAsynchronousFileChannel(Path path, Set<? extends OpenOption> options, ExecutorService executor, FileAttribute<?>... attrs)打开或创建用于读取和/或写入的文件,返回异步文件通道以访问该文件。 -
Uses of ExecutorService in java.util.concurrent
Subinterfaces of ExecutorService in java.util.concurrent 变量和类型 接口 描述 interfaceScheduledExecutorServiceExecutorService,可以调度命令在给定延迟后运行,或定期执行。Classes in java.util.concurrent that implement ExecutorService 变量和类型 类 描述 classAbstractExecutorService提供ExecutorService执行方法的默认实现。classForkJoinPoolclassScheduledThreadPoolExecutorThreadPoolExecutor,可以额外安排命令在给定延迟后运行,或定期执行。classThreadPoolExecutorExecutorService,使用可能的多个池化线程之一执行每个提交的任务,通常使用Executors工厂方法进行配置。Methods in java.util.concurrent that return ExecutorService 变量和类型 方法 描述 static ExecutorServiceExecutors. newCachedThreadPool()创建一个根据需要创建新线程的线程池,但在它们可用时将重用以前构造的线程。static ExecutorServiceExecutors. newCachedThreadPool(ThreadFactory threadFactory)创建一个根据需要创建新线程的线程池,但在它们可用时将重用以前构造的线程,并在需要时使用提供的ThreadFactory创建新线程。static ExecutorServiceExecutors. newFixedThreadPool(int nThreads)创建一个线程池,该池重用在共享的无界队列中运行的固定数量的线程。static ExecutorServiceExecutors. newFixedThreadPool(int nThreads, ThreadFactory threadFactory)创建一个线程池,该线程池重用在共享的无界队列中运行的固定数量的线程,使用提供的ThreadFactory在需要时创建新线程。static ExecutorServiceExecutors. newSingleThreadExecutor()创建一个Executor,它使用一个在无界队列中运行的工作线程。static ExecutorServiceExecutors. newSingleThreadExecutor(ThreadFactory threadFactory)创建一个Executor,它使用一个在无界队列中运行的工作线程,并在需要时使用提供的ThreadFactory创建一个新线程。static ExecutorServiceExecutors. newWorkStealingPool()使用 available processors作为目标并行级别创建工作窃取线程池。static ExecutorServiceExecutors. newWorkStealingPool(int parallelism)创建一个线程池,该线程池维护足够的线程以支持给定的并行度级别,并可以使用多个队列来减少争用。static ExecutorServiceExecutors. unconfigurableExecutorService(ExecutorService executor)返回一个对象,该对象将所有已定义的ExecutorService方法委托给给定的执行程序,但不能使用强制转换可以访问的任何其他方法。Methods in java.util.concurrent with parameters of type ExecutorService 变量和类型 方法 描述 static ExecutorServiceExecutors. unconfigurableExecutorService(ExecutorService executor)返回一个对象,该对象将所有已定义的ExecutorService方法委托给给定的执行程序,但不能使用强制转换可以访问的任何其他方法。
-