类 GenericEventListener
- java.lang.Object
-
- org.apache.dubbo.event.GenericEventListener
-
- 所有已实现的接口:
Comparable<Prioritized>,EventListener,Prioritized,EventListener<Event>
public abstract class GenericEventListener extends Object implements EventListener<Event>
An abstract class ofEventListenerfor Generic events, the sub class could add moreeventhandle methods, rather than only binds theEventListener.onEvent(Event)method that is declared to befinalthe implementation can't override. It's notable that alleventhandle methods must meet following conditions:- not
onEvent(Event)method publicaccessibilityvoidreturn type- no
exceptiondeclaration - only one
Eventtype argument
- 从以下版本开始:
- 2.7.5
- 另请参阅:
Event,EventListener
-
-
字段概要
-
从接口继承的字段 org.apache.dubbo.common.lang.Prioritized
COMPARATOR, MAX_PRIORITY, MIN_PRIORITY, NORMAL_PRIORITY
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidonEvent(Event event)Handle aDubbo Eventwhen it's be published-
从接口继承的方法 org.apache.dubbo.event.EventListener
getPriority
-
从接口继承的方法 org.apache.dubbo.common.lang.Prioritized
compareTo
-
-
-
-
方法详细资料
-
onEvent
public final void onEvent(Event event)
从接口复制的说明:EventListenerHandle aDubbo Eventwhen it's be published- 指定者:
onEvent在接口中EventListener<Event>- 参数:
event- aDubbo Event
-
-