@Configuration
@Condition(onProperty="${seata.saga.stateMachine.asyncThreadPool.enableAsync} = true")
public class SagaAsyncThreadPoolExecutorConfiguration
extends Object
| Constructor and Description |
|---|
SagaAsyncThreadPoolExecutorConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
ThreadPoolExecutor |
sagaAsyncThreadPoolExecutor(SagaAsyncThreadPoolProperties properties,
RejectedExecutionHandler rejectedExecutionHandler)
Create state machine async thread pool executor bean.
|
RejectedExecutionHandler |
sagaRejectedExecutionHandler()
Create rejected execution handler bean.
|
public SagaAsyncThreadPoolExecutorConfiguration()
@Bean(value="seataSagaRejectedExecutionHandler") @Condition(onMissingBean=java.util.concurrent.RejectedExecutionHandler.class) public RejectedExecutionHandler sagaRejectedExecutionHandler()
@Bean(value="seataSagaAsyncThreadPoolExecutor") @Condition(onMissingBean=java.util.concurrent.ThreadPoolExecutor.class) public ThreadPoolExecutor sagaAsyncThreadPoolExecutor(SagaAsyncThreadPoolProperties properties, @Inject(value="seataSagaRejectedExecutionHandler") RejectedExecutionHandler rejectedExecutionHandler)
Copyright © 2025. All rights reserved.