public class EventBus extends java.lang.Object implements IEventExceptionHandler
Constructor and Description |
---|
EventBus() |
EventBus(IEventExceptionHandler handler) |
Modifier and Type | Method and Description |
---|---|
void |
handleException(EventBus bus,
Event event,
IEventListener[] listeners,
int index,
java.lang.Throwable throwable)
Fired when a EventListener throws an exception for the specified event on the event bus.
|
boolean |
post(Event event) |
void |
register(java.lang.Object target) |
void |
unregister(java.lang.Object object) |
public EventBus()
public EventBus(@Nonnull IEventExceptionHandler handler)
public void register(java.lang.Object target)
public void unregister(java.lang.Object object)
public boolean post(Event event)
public void handleException(EventBus bus, Event event, IEventListener[] listeners, int index, java.lang.Throwable throwable)
IEventExceptionHandler
handleException
in interface IEventExceptionHandler
bus
- The bus the event is being fired onevent
- The event that is being firedlisteners
- All listeners that are listening for this event, in orderindex
- Index for the current listener being fired.throwable
- The throwable being thrown