|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IEventManager
Manages events within a local context.
IFrameworkContext| Method Summary | |
|---|---|
void |
execute(Runnable task)
Add the task to a queue to be executed by a single worker thread. |
int |
getEventProcessorCount()
Get the number of EventProcessor instances in this context |
ThreadGroup |
getEventProcessorThreadGroup()
Get the ThreadGroup for the event processors. |
ISystemEventSource |
getSystemEventSource(Class<? extends ISystemEvent> type)
Get an ISystemEventSource that is used to propagate a single
specific type of ISystemEvent. |
void |
queueEvent(IEvent event)
Add the event to a queue for distribution to registered IEventListener instances for the event's IEventSource. |
void |
queueEvents(Collection<IEvent> events)
Bulk operation for queueing events. |
void |
schedule(TimerTask task,
long delay,
long period)
Schedule a timer task to be executed by a single worker thread. |
| Methods inherited from interface fulmine.ILifeCycle |
|---|
isActive, start |
| Methods inherited from interface fulmine.IDestroyable |
|---|
destroy |
| Method Detail |
|---|
ISystemEventSource getSystemEventSource(Class<? extends ISystemEvent> type)
ISystemEventSource that is used to propagate a single
specific type of ISystemEvent. The system event source will be
created on the first invocation. The system event source is associated
with the zeroth EventProcessor.
type - the type of the system events the system event source
generates
ISystemEventSource for the type of system eventvoid queueEvents(Collection<IEvent> events)
event - the list of events to queuequeueEvent(IEvent)void queueEvent(IEvent event)
IEventListener instances for the event's IEventSource.
event - the event to queueThreadGroup getEventProcessorThreadGroup()
ThreadGroup for the event processors.
int getEventProcessorCount()
EventProcessor instances in this context
void execute(Runnable task)
runnable - the task to add to the execution queue
void schedule(TimerTask task,
long delay,
long period)
task - task to be scheduled.delay - delay in milliseconds before task is to be executed.period - time in milliseconds between successive task executions.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||