|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.d_haven.event.command.CommandEventPipeline
Created by IntelliJ IDEA. User: bloritsch Date: Jun 14, 2004 Time: 11:32:13 PM To change this template use File | Settings | File Templates.
Constructor Summary | |
CommandEventPipeline(EnqueuePredicate predicate,
EventHandler handler)
The CommandEventPipeline is used to manage the incomming queue of commands, the queue of commands to run later, and the event handler to pass the commands to. |
Method Summary | |
void |
clear()
Run any remaining incoming commands and then clear out all the commands in the system. |
void |
clearHard()
Remove all the commands from the system without running any of them. |
EventHandler |
getEventHandler()
Used by the ThreadManager to get the EventHandler for the DefaultCommandManager. |
Sink |
getIncomingSink()
Provide a way to get the Sink to send new Commands to. |
Sink |
getRecurringSink()
Provide a way to get the Sink to requeue delayed Commands to. |
Source[] |
getSources()
Used by the Threadmanager to get the sources that are feeding the DefaultCommandManager. |
java.lang.String |
toString()
Provide a string representation of the pipeline for debugging purposes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CommandEventPipeline(EnqueuePredicate predicate, EventHandler handler)
predicate
- The predicate used to determine if we are
accepting commandshandler
- The handler used to send the eventsMethod Detail |
public Sink getIncomingSink()
public Sink getRecurringSink()
public final Source[] getSources()
getSources
in interface EventPipeline
public final EventHandler getEventHandler()
getEventHandler
in interface EventPipeline
public void clear()
public void clearHard()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |