类 AbstractSelectorWrapper<S extends com.alibaba.nacos.api.selector.client.Selector<?,?>,E,T extends com.alibaba.nacos.common.notify.Event>
java.lang.Object
com.alibaba.nacos.client.selector.AbstractSelectorWrapper<S,E,T>
- 类型参数:
S- the type of selectorT- the type of original eventE- the type of listener callback event
- 直接已知子类:
NamingSelectorWrapper
public abstract class AbstractSelectorWrapper<S extends com.alibaba.nacos.api.selector.client.Selector<?,?>,E,T extends com.alibaba.nacos.common.notify.Event>
extends Object
Selector Wrapper.
- 作者:
- lideyou
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected abstract EbuildListenerEvent(T event) Build an event received by the listener.booleaninthashCode()protected abstract booleanisCallable(E event) Check whether the result can be callback.protected abstract booleanisSelectable(T event) Check whether the event can be callback.voidnotifyIfListenerIfNotNotified(T event) Notify listener If the listener is not invoked.voidnotifyListener(T event) Notify listener.
-
构造器详细资料
-
AbstractSelectorWrapper
-
-
方法详细资料
-
isSelectable
Check whether the event can be callback.- 参数:
event- original event- 返回:
- true if the event can be callback
-
isCallable
Check whether the result can be callback.- 参数:
event- select result- 返回:
- true if the result can be callback
-
buildListenerEvent
Build an event received by the listener.- 参数:
event- original event- 返回:
- listener event
-
notifyListener
Notify listener.- 参数:
event- original event
-
notifyIfListenerIfNotNotified
Notify listener If the listener is not invoked.- 参数:
event- original event
-
getListener
-
getSelector
-
equals
-
hashCode
public int hashCode()
-