public interface EventPubSub<E>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CustomApplicationEventChannel |
static java.lang.String |
DefaultEventChannel |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.lang.String> |
getListeningChannels() |
void |
publish(E event)
发布事件。被
ShouldBroadcast标注的事件将通过其指定的频道发送广播。 |
void |
publishToLocalOnly(E event)
仅在本地(当前ApplicationContext)发布事件,不对外广播。
|
static final java.lang.String DefaultEventChannel
static final java.lang.String CustomApplicationEventChannel
void publishToLocalOnly(E event)
void publish(E event)
ShouldBroadcast标注的事件将通过其指定的频道发送广播。java.util.Set<java.lang.String> getListeningChannels()