类 EventProcessor


  • @Component
    public class EventProcessor
    extends java.lang.Object
    作者:
    special.fy
    • 字段详细资料

      • MAX_WAIT_EVENT_TIME

        private static final int MAX_WAIT_EVENT_TIME
        另请参阅:
        常量字段值
      • events

        private final java.util.concurrent.BlockingQueue<Event> events
    • 构造器详细资料

      • EventProcessor

        public EventProcessor()
    • 方法详细资料

      • notify

        public void notify​(Event event)
      • handleEvents

        @PostConstruct
        public void handleEvents()
      • hasClientConnection

        private boolean hasClientConnection()
      • needNewTask

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