Interface SubscribeExecutorStrategy
public interface SubscribeExecutorStrategy
Strategy interface for selecting the thread executor used to run a subscriber method.
Implement this interface to provide custom executor selection logic when the built-in
ExecutorSelector options are insufficient.- Since:
- 21
- Author:
- 渔民小镇
- See Also:
- date:
- 2023-12-24
-
Method Summary
Modifier and TypeMethodDescriptionselect(Subscriber subscriber, EventBusMessage eventBusMessage, ExecutorRegion executorRegion) Get the corresponding thread executor
-
Method Details
-
select
ThreadExecutor select(Subscriber subscriber, EventBusMessage eventBusMessage, ExecutorRegion executorRegion) Get the corresponding thread executor- Parameters:
subscriber- SubscribereventBusMessage- Event messageexecutorRegion- The thread executor management domain associated with the business framework- Returns:
- Thread executor
-