类 EventProcessor

  • 所有已实现的接口:
    java.util.EventListener, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>

    @Component
    public class EventProcessor
    extends java.lang.Object
    implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
    EventProcessor.
    作者:
    special.fy
    • 构造器详细资料

      • EventProcessor

        public EventProcessor()
    • 方法详细资料

      • notify

        public void notify​(Event event)
        notify.
        参数:
        event - event
      • handleEvents

        private void handleEvents()
      • onApplicationEvent

        public void onApplicationEvent​(org.springframework.context.event.ContextRefreshedEvent contextRefreshedEvent)
        指定者:
        onApplicationEvent 在接口中 org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
      • hasClientConnection

        private boolean hasClientConnection()
      • needNewTask

        private boolean needNewTask​(boolean hasNewEvent,
                                    java.util.concurrent.Future<java.lang.Void> task)
      • checkDependenceReady

        private boolean checkDependenceReady()