Class SimpleAppEventManager

java.lang.Object
net.solarnetwork.event.SimpleAppEventManager
All Implemented Interfaces:
AppEventHandlerRegistrar, AppEventPublisher

public class SimpleAppEventManager extends Object implements AppEventHandlerRegistrar, AppEventPublisher
Simple implementation of AppEventHandlerRegistrar.
Since:
2.0
Version:
1.0
Author:
matt
  • Constructor Details

    • SimpleAppEventManager

      public SimpleAppEventManager()
      Constructor.

      An Ant-style path matcher and work-stealing pool will be used.

    • SimpleAppEventManager

      public SimpleAppEventManager(Executor executor)
      Constructor.

      An Ant-style path matcher will be used.

      Parameters:
      executor - the executor
      Throws:
      IllegalArgumentException - if any argument is null
    • SimpleAppEventManager

      public SimpleAppEventManager(org.springframework.util.PathMatcher pathMatcher, Executor executor)
      Constructor.
      Parameters:
      pathMatcher - the path matcher to use for topic matching
      executor - the executor
      Throws:
      IllegalArgumentException - if any argument is null
    • SimpleAppEventManager

      public SimpleAppEventManager(org.springframework.util.PathMatcher pathMatcher, Executor executor, ConcurrentMap<String,Set<AppEventHandler>> handlerMap)
      Constructor.
      Parameters:
      pathMatcher - the path matcher to use for topic matching
      executor - the executor
      handlerMap - the map to use for handler registration
      Throws:
      IllegalArgumentException - if any argument is null
  • Method Details