Package gg.xp.reevent.events
Interface EventDistributor
- All Known Implementing Classes:
AutoEventDistributor
,BasicEventDistributor
,MonitoringEventDistributor
public interface EventDistributor
-
Method Summary
Modifier and TypeMethodDescriptionvoid
acceptEvent
(Event event) void
registerHandler
(EventHandler<Event> handler) Register event handler that will accept all event classes.default <Y extends Event>
voidregisterHandler
(Class<Y> clazz, EventHandler<? super Y> handler) Register event handler and automatically filter to a particular class.void
setQueue
(EventQueue queue)
-
Method Details
-
registerHandler
Register event handler that will accept all event classes.- Parameters:
handler
- The handler
-
registerHandler
Register event handler and automatically filter to a particular class.- Type Parameters:
Y
- Type of event- Parameters:
clazz
- Type of eventhandler
- The handler
-
acceptEvent
-
setQueue
-
getStateStore
StateStore getStateStore()
-