public class AsyncBeanOperationExecutor extends AbstractBeanOperationExecutor
The asynchronous implementation of BeanOperationExecutor.
It will group the operations to be executed according to the data source container,
then submit them to the executor in turn, and finally complete them asynchronously.
It is not possible to ensure that the operations are executed in order, but only to submit tasks to the thread pool in the order of operations.
BeanOperationExecutor.OptionsenableExecuteNotActiveOperation, waitTimeoutMillisecondIfOperationNotActive| 构造器和说明 |
|---|
AsyncBeanOperationExecutor(ContainerManager containerManager,
ExecutorService executorService)
Create an comparator of
AsyncBeanOperationExecutor. |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
executeOperations(List<AssembleExecution> executions,
BeanOperationExecutor.Options options)
Complete the assembly operation.
|
createAssembleExecution, execute, tryExecuteclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecute, executepublic AsyncBeanOperationExecutor(ContainerManager containerManager, ExecutorService executorService)
AsyncBeanOperationExecutor.containerManager - container managerexecutorService - thread pool used to perform operationsprotected void executeOperations(List<AssembleExecution> executions, BeanOperationExecutor.Options options) throws OperationExecuteException
Complete the assembly operation.
All operations of input parameters ensure their orderliness in the same class.
For example, if there are ordered operations a and b in A.class,
the order of a and b is still guaranteed when
the corresponding AssembleExecution is obtained.
executeOperations 在类中 AbstractBeanOperationExecutorexecutions - assembly operations to be completedoptions - options for executionOperationExecuteException - thrown when operation execution exceptionCopyright © 2023. All rights reserved.