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 void prepareAsyncExecutor(@NotNull() Executor async)
      static void prepareSpringPublisher(@NotNull() ApplicationEventPublisher spring)
      static void prepareGlobalPublisher(@NotNull() ApplicationEventPublisher global)
      static boolean isPreparedGlobal() whether global is prepared
      static boolean isPreparedAsync() whether app async is prepared
      static boolean isPreparedSync() whether app sync is prepared
      static boolean isPrepared() whether this helper is fully prepared
      • Methods inherited from class java.lang.Object

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