| Package | Description |
|---|---|
| com.github.leanframeworks.minibus.api | |
| com.github.leanframeworks.minibus.base.bus | |
| com.github.leanframeworks.minibus.base.dispatcher |
| Modifier and Type | Method and Description |
|---|---|
void |
EventBus.addUndeliveredEventHandler(EventHandler<Object> handler)
Adds the specified event handler that will process events that have not been processed by any event handler
registered with
EventBus.subscribe(Topic, Channel, EventFilter, EventHandler). |
void |
EventBus.removeUndeliveredEventHandler(EventHandler<Object> handler)
Removes the specified undelievered event handler.
|
<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.
|
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 | Field and Description |
|---|---|
protected List<EventHandler<Object>> |
AbstractEventBus.undeliveredEventHandlers
Registerd handlers for undelivered events.
|
| Modifier and Type | Method and Description |
|---|---|
EventHandler<? super C> |
AbstractEventBus.SubscriptionEntry.getHandler()
Gets the subscribers.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
StaticEventBus.addUndeliveredEventHandler(EventHandler<Object> handler) |
void |
AbstractEventBus.addUndeliveredEventHandler(EventHandler<Object> handler) |
protected Channel |
AbstractEventBus.createDefaultChannelForHandler(EventHandler<?> handler)
Creates a default, dedicated channel for the specified event handler.
|
static void |
StaticEventBus.removeUndeliveredEventHandler(EventHandler<Object> handler) |
void |
AbstractEventBus.removeUndeliveredEventHandler(EventHandler<Object> handler) |
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.
|
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.
|
static <C> int |
StaticEventBus.subscribe(Topic<C> topic,
EventHandler<? super C> handler) |
<C> int |
AbstractEventBus.subscribe(Topic<C> topic,
EventHandler<? super C> handler)
Registers a subscriber for the specified topic by adding an event handler.
|
static void |
StaticEventBus.unsubscribe(EventHandler<?> handler)
Unsubscribes the specified event handler from all topics.
|
| 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 |
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 |
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) |
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.processEvent(Event<Object> event,
Map<EventHandler<Object>,EventFilter<Object>> eventHandlers,
Collection<EventHandler<Object>> undeliveredEventHandlers,
Collection<ExceptionHandler> exceptionHandlers) |
protected void |
AbstractDispatcher.processUndeliveredEvent(Event<Object> event,
Collection<EventHandler<Object>> undeliveredEventHandlers,
Collection<ExceptionHandler> exceptionHandlers)
Passes the specified event to the specified undelivered event handlers.
|
protected void |
AbstractSerialDispatcher.queueEvent(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) |
Copyright © 2017. All rights reserved.