类 EventProcessor
- java.lang.Object
-
- com.alibaba.nacos.istio.common.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
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 private classEventProcessor.Consumerprivate classEventProcessor.EventHandleTask
-
字段概要
字段 修饰符和类型 字段 说明 private java.util.concurrent.BlockingQueue<Event>eventsprivate static intMAX_WAIT_EVENT_TIMEprivate NacosMcpServicenacosMcpServiceprivate NacosXdsServicenacosXdsServiceprivate NacosResourceManagerresourceManager
-
构造器概要
构造器 构造器 说明 EventProcessor()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 private booleancheckDependenceReady()private voidhandleEvents()private booleanhasClientConnection()private booleanneedNewTask(boolean hasNewEvent, java.util.concurrent.Future<java.lang.Void> task)voidnotify(Event event)notify.voidonApplicationEvent(org.springframework.context.event.ContextRefreshedEvent contextRefreshedEvent)
-
-
-
字段详细资料
-
MAX_WAIT_EVENT_TIME
private static final int MAX_WAIT_EVENT_TIME
- 另请参阅:
- 常量字段值
-
nacosMcpService
private NacosMcpService nacosMcpService
-
nacosXdsService
private NacosXdsService nacosXdsService
-
resourceManager
private NacosResourceManager resourceManager
-
events
private final java.util.concurrent.BlockingQueue<Event> events
-
-
方法详细资料
-
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()
-
-