接口的使用
cn.taketoday.core.task.TaskExecutor
使用TaskExecutor的程序包
程序包
说明
This package defines core TaskExecutor abstraction,
and provides SyncTaskExecutor and SimpleAsyncTaskExecutor implementations.
Support classes for TaskExecutor abstraction.
-
cn.taketoday.core.task中TaskExecutor的使用
修饰符和类型接口说明interfaceExtension of theAsyncTaskExecutorinterface, adding the capability to submit tasks forListenableFutures.interfaceExtended interface for asynchronousTaskExecutorimplementations, offering support forCallable.修饰符和类型类说明classTaskExecutorimplementation that fires up a new Thread for each task, executing it asynchronously.classTaskExecutorimplementation that executes each task synchronously in the calling thread.classATaskExecutorimplementation based on virtual threads in JDK 21+. -
cn.taketoday.core.task.support中TaskExecutor的使用
修饰符和类型类说明classAdapter that takes a JDKjava.util.concurrent.Executorand exposes aTaskExecutorfor it.修饰符和类型字段说明private final TaskExecutorConcurrentExecutorAdapter.taskExecutorprivate final TaskExecutorExecutorServiceAdapter.taskExecutor参数类型为TaskExecutor的cn.taketoday.core.task.support中的构造器限定符构造器说明ConcurrentExecutorAdapter(TaskExecutor taskExecutor) Create a new ConcurrentExecutorAdapter for the given TaskExecutor.ExecutorServiceAdapter(TaskExecutor taskExecutor) Create a new ExecutorServiceAdapter, using the given target executor.