Package gg.xp.reevent.events
Class BasicEventDistributor
java.lang.Object
gg.xp.reevent.events.BasicEventDistributor
- All Implemented Interfaces:
EventDistributor
- Direct Known Subclasses:
AutoEventDistributor
,MonitoringEventDistributor
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
acceptEvent
(Event event) protected List<EventHandler<Event>>
getHandlersForEvent
(Event event) boolean
void
registerHandler
(EventHandler<Event> handler) Register event handler that will accept all event classes.void
setProfilingEnabled
(boolean enableProfiling) void
setQueue
(EventQueue queue) protected void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface gg.xp.reevent.events.EventDistributor
registerHandler
-
Field Details
-
handlers
-
-
Constructor Details
-
BasicEventDistributor
-
-
Method Details
-
registerHandler
Description copied from interface:EventDistributor
Register event handler that will accept all event classes.- Specified by:
registerHandler
in interfaceEventDistributor
- Parameters:
handler
- The handler
-
sortHandlers
protected void sortHandlers() -
getHandlersForEvent
-
setQueue
- Specified by:
setQueue
in interfaceEventDistributor
-
getStateStore
- Specified by:
getStateStore
in interfaceEventDistributor
-
acceptEvent
- Specified by:
acceptEvent
in interfaceEventDistributor
-
getTimeStats
-
isProfilingEnabled
public boolean isProfilingEnabled() -
setProfilingEnabled
public void setProfilingEnabled(boolean enableProfiling)
-