| Package | Description |
|---|---|
| org.timothyb89.eventbus | |
| org.timothyb89.eventbus.demo |
| Modifier and Type | Class and Description |
|---|---|
class |
ContextualEvent<T>
Defines an
Event that occurs within some (generic) context. |
| Modifier and Type | Method and Description |
|---|---|
void |
EventQueueEntry.notify(Event event)
Notifies this queue entry of an event.
|
void |
EventBus.push(Event event)
Pushes the given event to the message bus.
|
void |
EventQueueDefinition.push(Event event)
Notifies entries in the event queue of the given event.
|
void |
EventBus.push(Event event,
int priority)
Pushes the given event to the bus, but only notifies those with a
priority flag greater than or equal to the given
priority. |
void |
EventQueueDefinition.push(Event event,
int priority)
Notifies entries in the event queue with the given minimum priority.
|
| Modifier and Type | Method and Description |
|---|---|
void |
EventBus.add(Class<? extends Event> clazz)
Defines a new event type.
|
EventQueueDefinition |
EventBus.getQueueForClass(Class<? extends Event> clazz)
Gets the EventQueueDefinition for the given class.
|
void |
EventBus.remove(Class<? extends Event> clazz)
Removes the event queue for the given class.
|
| Constructor and Description |
|---|
EventQueueDefinition(Class<? extends Event> eventType) |
| Modifier and Type | Class and Description |
|---|---|
class |
DemoEmitter.DemoEventA |
class |
DemoEmitter.DemoEventAB |
class |
DemoEmitter.DemoEventB |
Copyright © 2014. All rights reserved.