| Modifier and Type | Method and Description |
|---|---|
default EventFilter<C> |
EventFilter.and(EventFilter<C> other)
Composes a new event filter by combining this event filter and the specified event filter with an AND operation.
|
default EventFilter<C> |
EventFilter.not()
Creates a new event filter negating this event filter.
|
default EventFilter<C> |
EventFilter.or(EventFilter<C> other)
Composes a new event filter by combining this event filter and the specified event filter with an OR operation.
|
| Modifier and Type | Method and Description |
|---|---|
default EventFilter<C> |
EventFilter.and(EventFilter<C> other)
Composes a new event filter by combining this event filter and the specified event filter with an AND operation.
|
default EventFilter<C> |
EventFilter.or(EventFilter<C> other)
Composes a new event filter by combining this event filter and the specified event filter with an OR operation.
|
<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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Dispatcher.dispatch(Event<Object> event,
Map<EventHandler<Object>,EventFilter<Object>> eventHandlers,
Collection<EventHandler<Object>> undeliveredEventHandlers,
Collection<ExceptionHandler> exceptionHandlers)
Dispatches the specified event to the specified event filters and handlers.
|
| Modifier and Type | Method and Description |
|---|---|
EventFilter<? super C> |
AbstractEventBus.SubscriptionEntry.getFilter()
Gets the filter registered with the subscription
|
| Modifier and Type | Method and Description |
|---|---|
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,
EventFilter<? super C> filter,
EventHandler<? super C> handler) |
<C> int |
AbstractEventBus.subscribe(Topic<C> topic,
EventFilter<? super C> filter,
EventHandler<? super C> handler)
Registers a subscriber for the specified topic with the specified filter by adding an event handler.
|
| Constructor and Description |
|---|
SubscriptionEntry(int id,
Topic<C> topic,
EventFilter<? super C> filter,
EventHandler<? super C> handler)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
AbstractDispatcher.processEventThroughFilterAndHandler(Event<Object> event,
EventFilter<Object> filter,
EventHandler<Object> handler,
Collection<ExceptionHandler> exceptionHandlers)
Passes the specified event to the specified event handler if the specified event filter accepts it.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SingleThreadDispatcher.dispatch(Event<Object> event,
Map<EventHandler<Object>,EventFilter<Object>> eventHandlers,
Collection<EventHandler<Object>> undeliveredEventHandlers,
Collection<ExceptionHandler> exceptionHandlers) |
void |
AbstractUIThreadDispatcher.dispatch(Event<Object> event,
Map<EventHandler<Object>,EventFilter<Object>> eventHandlers,
Collection<EventHandler<Object>> undeliveredEventHandlers,
Collection<ExceptionHandler> exceptionHandlers) |
void |
CurrentThreadDispatcher.dispatch(Event<Object> event,
Map<EventHandler<Object>,EventFilter<Object>> eventHandlers,
Collection<EventHandler<Object>> undeliveredEventHandlers,
Collection<ExceptionHandler> exceptionHandlers) |
protected void |
AbstractSerialDispatcher.processEvent(Event<Object> event,
Map<EventHandler<Object>,EventFilter<Object>> eventHandlers,
Collection<EventHandler<Object>> undeliveredEventHandlers,
Collection<ExceptionHandler> exceptionHandlers) |
protected void |
AbstractSerialDispatcher.queueEvent(Event<Object> event,
Map<EventHandler<Object>,EventFilter<Object>> eventHandlers,
Collection<EventHandler<Object>> undeliveredEventHandlers,
Collection<ExceptionHandler> exceptionHandlers) |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractClassFilter<C> |
class |
ChannelFilter<C> |
class |
ContentClassFilter<C> |
class |
EventClassFilter<C> |
class |
TopicFilter<C>
Event filter implementation based on topics.
|
Copyright © 2017. All rights reserved.