类 Subscriber<T extends Event>
java.lang.Object
com.alibaba.nacos.common.notify.listener.Subscriber<T>
- 直接已知子类:
SmartSubscriber
An abstract subscriber class for subscriber interface.
- 作者:
- liaochuntao, zongtanghu
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明executor()It is up to the listener to determine whether the callback is asynchronous or synchronous.booleanWhether to ignore expired events.abstract voidEvent callback.Type of this subscriber's subscription.
-
构造器详细资料
-
Subscriber
public Subscriber()
-
-
方法详细资料
-
onEvent
Event callback.- 参数:
event-Event
-
subscribeType
Type of this subscriber's subscription.- 返回:
- Class which extends
Event
-
executor
It is up to the listener to determine whether the callback is asynchronous or synchronous.- 返回:
Executor
-
ignoreExpireEvent
public boolean ignoreExpireEvent()Whether to ignore expired events.- 返回:
- default value is
Boolean.FALSE
-