public class WaitJob extends SimpleJob implements Stoppable
If the for property is provided, then the delay is used as the number of milliseconds between checking if the property is available.
ExecutorThrottleType
has a simple example.<sequential name="Waiting For a Property"> <jobs> <variables id="waitvars"/> <wait name="Wait for Variable" for="${waitvars.text}" pause="2000"/> <echo name="Echo Text">${waitvars.text}</echo> </jobs> </sequential>
Constructor and Description |
---|
WaitJob() |
Modifier and Type | Method and Description |
---|---|
int |
execute()
Execute this job.
|
Object |
getFor() |
long |
getPause()
Get the delay time in milli seconds.
|
StateCondition |
getState() |
void |
setFor(Object forProperty) |
void |
setPause(long delay)
Set the delay time in milli seconds.
|
void |
setState(StateCondition state) |
protected void |
simpleWait() |
protected void |
waitFor() |
protected void |
waitForState() |
fireDestroyedState, force, getStateChanger, hardReset, iconHelper, isStop, onDestroy, onReset, onStop, run, sleep, softReset, stateHandler, stop
configure, getName, logger, logger, loggerName, save, setName, toString
addIconListener, addPropertyChangeListener, addStateListener, configure, destroy, firePropertyChange, getArooaSession, iconForId, initialise, lastStateEvent, onConfigured, onInitialised, removeIconListener, removePropertyChangeListener, removeStateListener, save, setArooaContext, setArooaSession
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addStateListener, lastStateEvent, removeStateListener
public void setPause(long delay)
delay
- The delay time.public long getPause()
public int execute() throws Exception
SimpleJob
protected void simpleWait()
protected void waitFor()
protected void waitForState()
public Object getFor()
public void setFor(Object forProperty)
public StateCondition getState()
public void setState(StateCondition state)