public interface EventsDistributor
Modifier and Type | Method and Description |
---|---|
void |
fireEventConcurrently(EventModel<?> eventModel)
fires the event concurrently, this is generally discouraged.
|
Identification |
getManagerIdentification()
returns the ID of the Manager (EventsDistributor)
|
Optional<EventCallable> |
registerEventPublisher(Identification identification)
with this method you can register EventPublisher add a Source of Events to the System.
|
void |
registerEventsController(EventsControllerModel eventsController)
Registers an EventController to control EventDispatching-Behaviour
|
void |
unregisterEventPublisher(Identification identification)
with this method you can unregister EventPublisher add a Source of Events to the System.
|
void |
unregisterEventsController(EventsControllerModel eventsController)
Unregisters an EventController
|
Optional<EventCallable> registerEventPublisher(Identification identification) throws IllegalIDException
This method represents a higher level of abstraction! Use the EventManager to fire Events! This method is intended for use cases where you have an entire new source of events (e.g. network)
identification
- the Identification of the SourceIllegalIDException
- not yet implementedvoid unregisterEventPublisher(Identification identification)
This method represents a higher level of abstraction! Use the EventManager to fire Events! This method is intended for use cases where you have an entire new source of events (e.g. network)
identification
- the Identification of the Sourcevoid registerEventsController(EventsControllerModel eventsController) throws IllegalIDException
Method is thread-safe. It is expected that this method executes quickly.
eventsController
- the EventController Interface to control event-dispatchingIllegalIDException
- not yet implementedvoid unregisterEventsController(EventsControllerModel eventsController)
Method is thread-safe.
eventsController
- the EventController Interface to removevoid fireEventConcurrently(EventModel<?> eventModel)
This method should not be used for normal Events, for for events which obey the following laws:
1. they are time critical.
2. addons are not expected to react in any way beside a small update
3. they are few.
if your event matches the above laws, you may consider firing it concurrently.
eventModel
- the EventModelIdentification getManagerIdentification()
Copyright © 2016. All rights reserved.