| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.scxml.env.SimpleScheduler
public class SimpleScheduler
EventDispatcher implementation that can schedule delayed
 <send> events for the "scxml" targettype
 attribute value (which is also the default). This implementation uses
 J2SE Timers.
No other targettypes are processed. Subclasses may support
 additional targettypes by overriding the
 send(...) and cancel(...) methods and
 delegating to their super counterparts for the
 "scxml" targettype.
| Constructor Summary | |
|---|---|
SimpleScheduler(SCXMLExecutor executor)
Constructor.  | 
|
| Method Summary | |
|---|---|
 void | 
cancel(String sendId)
Cancel the specified send message.  | 
protected  SCXMLExecutor | 
getExecutor()
Get the executor we're attached to.  | 
protected  org.apache.commons.logging.Log | 
getLog()
Get the log instance.  | 
protected  Map | 
getTimers()
Get the current timers.  | 
 void | 
send(String sendId,
     String target,
     String targettype,
     String event,
     Map params,
     Object hints,
     long delay,
     List externalNodes)
Send this message to the target.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public SimpleScheduler(SCXMLExecutor executor)
executor - The owning SCXMLExecutor instance.| Method Detail | 
|---|
public void cancel(String sendId)
EventDispatcher
cancel in interface EventDispatchersendId - The ID of the send message to cancelEventDispatcher.cancel(String)
public void send(String sendId,
                 String target,
                 String targettype,
                 String event,
                 Map params,
                 Object hints,
                 long delay,
                 List externalNodes)
EventDispatcher
send in interface EventDispatchersendId - The ID of the send messagetarget - An expression returning the target location of the eventtargettype - The type of the Event I/O Processor that the event
  should be dispatched toevent - The type of event being generated.params - A list of zero or more whitespace separated variable
  names to be included with the event.hints - The data containing information which may be
  used by the implementing platform to configure the event processordelay - The event is dispatched after the delay interval elapsesexternalNodes - The list of external nodes associated with
  the <send> element.EventDispatcher.send(String,String,String,String,Map,Object,long,List)protected org.apache.commons.logging.Log getLog()
protected Map getTimers()
protected SCXMLExecutor getExecutor()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||