public abstract class Subscriber<T extends Event> extends Object
| 构造器和说明 |
|---|
Subscriber() |
| 限定符和类型 | 方法和说明 |
|---|---|
Executor |
executor()
It is up to the listener to determine whether the callback is asynchronous or synchronous.
|
boolean |
ignoreExpireEvent()
Whether to ignore expired events.
|
abstract void |
onEvent(T event)
Event callback.
|
boolean |
scopeMatches(T event)
Whether the event's scope matches current subscriber.
|
abstract Class<? extends Event> |
subscribeType()
Type of this subscriber's subscription.
|
public abstract Class<? extends Event> subscribeType()
Eventpublic Executor executor()
Executorpublic boolean ignoreExpireEvent()
Boolean.FALSEpublic boolean scopeMatches(T event)
Event.scope().event - EventCopyright © 2018–2024 Alibaba Group. All rights reserved.