Class EventPublishHelper

  • All Implemented Interfaces:

    
    public class EventPublishHelper
    
                        
    ApplicationEventPublisher helper. Generally used for non-transactional Event, the main function:
    (1) async publish event
    (2) IDE hit and navigation
    (3) wrap hazelcast topic(#HazelcastTopic) to SpringEvent
    
    Note, do NOT use ApplicationEventMulticaster in async, or handle exception,
    that would break Spring's default synchronization mechanism.
    
    Since:

    2021-06-07

    Author:

    trydofor

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static ApplicationEventPublisher SyncSpring
      public final static ApplicationEventPublisher AsyncSpring
      public final static ApplicationEventPublisher AsyncGlobal
      public final static ApplicationEventPublisher AsyncWidely
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static boolean hasAsyncGlobal()
      static void setGlobalPublisher(ApplicationEventPublisher globalPublisher)
      static void setExecutor(Executor executor)
      static void setSpringPublisher(ApplicationEventPublisher springPublisher)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait