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 Details

    • select

      ThreadExecutor select(Subscriber subscriber, EventBusMessage eventBusMessage, ExecutorRegion executorRegion)
      Get the corresponding thread executor
      Parameters:
      subscriber - Subscriber
      eventBusMessage - Event message
      executorRegion - The thread executor management domain associated with the business framework
      Returns:
      Thread executor