public class LocalEventManager extends IzouModule implements Runnable
| Modifier and Type | Class and Description |
|---|---|
class |
LocalEventManager.EventCaller
Class used to fire events.
|
static class |
LocalEventManager.MultipleEventsException
Deprecated.
|
log, main| Constructor and Description |
|---|
LocalEventManager(Main main) |
| Modifier and Type | Method and Description |
|---|---|
void |
fireEvent(EventModel event)
This method fires an Event
|
Optional<EventCallable> |
registerCaller(Identification identification)
Registers with the EventManager to fire an event.
|
void |
run() |
void |
stop()
Should stop the EventManager.
|
void |
unregisterCaller(Identification identification)
Unregister with the EventManager.
|
debug, debug, error, error, fatal, fatal, getID, getMainclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisOwnerpublic LocalEventManager(Main main)
public Optional<EventCallable> registerCaller(Identification identification) throws IllegalIDException
identification - the Identification of the the instanceIllegalIDException - not yet implementedpublic void unregisterCaller(Identification identification)
identification - the Identification of the the instancepublic void fireEvent(EventModel event) throws IllegalIDException, MultipleEventsException
event - the fired EventIllegalIDException - not yet implementedMultipleEventsException - if there is currently another event getting processedpublic void stop()
Copyright © 2016. All rights reserved.