| Modifier and Type | Method and Description |
|---|---|
Channel |
Event.getChannel()
Gets the channel on which the event is being dispatched.
|
| Modifier and Type | Method and Description |
|---|---|
default boolean |
Channel.flowsInto(Channel channel)
States whether this channel flows into the specified channel.
|
<C> void |
EventBus.publish(Topic<C> topic,
Channel channel,
C content)
Sends the specified content for the specified topic on the specified channel.
|
<C> int |
EventBus.subscribe(Topic<C> topic,
Channel channel,
EventFilter<? super C> filter,
EventHandler<? super C> handler)
Registers a subscriber for the specified topic on the specified channel with the specified filter by adding an
event handler.
|
| Constructor and Description |
|---|
Event(Topic<? extends C> topic,
Channel channel,
C content)
Constructor specifying the topic, channel and content of the event.
|
| Modifier and Type | Method and Description |
|---|---|
protected Channel |
AbstractEventBus.createDefaultChannelForHandler(EventHandler<?> handler)
Creates a default, dedicated channel for the specified event handler.
|
| Modifier and Type | Method and Description |
|---|---|
static <C> void |
StaticEventBus.publish(Topic<C> topic,
Channel channel,
C content) |
<C> void |
AbstractEventBus.publish(Topic<C> topic,
Channel channel,
C content) |
static <C> int |
StaticEventBus.subscribe(Topic<C> topic,
Channel channel,
EventFilter<? super C> filter,
EventHandler<? super C> handler) |
<C> int |
AbstractEventBus.subscribe(Topic<C> topic,
Channel channel,
EventFilter<? super C> filter,
EventHandler<? super C> handler) |
static <C> int |
StaticEventBus.subscribe(Topic<C> topic,
Channel channel,
EventHandler<? super C> handler) |
<C> int |
AbstractEventBus.subscribe(Topic<C> topic,
Channel channel,
EventHandler<? super C> handler)
Registers a subscriber for the specified topic on the specified channel by adding an event handler.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BroadcastChannel
Broadcast channel implemented as a singleton.
|
class |
SimpleChannel
Simple implementation of a channel.
|
| Modifier and Type | Method and Description |
|---|---|
static Channel |
BroadcastChannel.getInstance()
Gets the single instance of the broadcast channel.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<Channel> |
SimpleChannel.getSubChannels()
Gets the sub-channels into which this channel can flow.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SimpleChannel.addSubChannel(Channel channel)
Adds the specified sub-channel into which this channel can flow.
|
boolean |
SimpleChannel.flowsInto(Channel channel) |
boolean |
BroadcastChannel.flowsInto(Channel channel) |
void |
SimpleChannel.removeSubChannel(Channel channel)
Removes the specified sub-channel into which this channel can no longer flow.
|
| Constructor and Description |
|---|
SimpleChannel(Channel... subChannels)
Constructor.
|
SimpleChannel(String name,
Channel... subChannels)
Constructor.
|
| Constructor and Description |
|---|
SimpleChannel(Collection<Channel> subChannels)
Constructor.
|
SimpleChannel(String name,
Collection<Channel> subChannels)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ChannelFilter.addChannel(Channel channel) |
void |
ChannelFilter.removeChannel(Channel channel) |
| Constructor and Description |
|---|
ChannelFilter(boolean accept,
Channel... channels) |
ChannelFilter(Channel... channels) |
ChannelFilter(Channel channel) |
| Constructor and Description |
|---|
ChannelFilter(boolean accept,
Collection<? extends Channel> channels) |
ChannelFilter(Collection<? extends Channel> channels) |
Copyright © 2017. All rights reserved.