gecco.server.core
Class ActionReturnRequeue

java.lang.Object
  |
  +--gecco.server.core.ActionReturn
        |
        +--gecco.server.core.ActionReturnRequeue

public class ActionReturnRequeue
extends ActionReturn

An instance of this class should be returned from action handlers to indicate that the action is not finished and that the handler should be called again after a specified amount of time.

Author:
Henrik Bäärnhielm, Karl Hasselström, Henrik Hägerström

Field Summary
private  long timeToWakeup
          Description of the Field
 
Fields inherited from class gecco.server.core.ActionReturn
unitMessage
 
Constructor Summary
ActionReturnRequeue(double _timeToWakeup)
          Constructor for the ActionReturnRequeue object
ActionReturnRequeue(double _timeToWakeup, String unitMessage)
          Constructor for the ActionReturnRequeue object
 
Method Summary
 long getTimeToWakeup()
          Gets the number of milliseconds until next call to handler.
 
Methods inherited from class gecco.server.core.ActionReturn
getUnitMessage
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

timeToWakeup

private long timeToWakeup
Description of the Field
Constructor Detail

ActionReturnRequeue

public ActionReturnRequeue(double _timeToWakeup)
Constructor for the ActionReturnRequeue object
Parameters:
_timeToWakeup - Milliseconds until next call to handler.

ActionReturnRequeue

public ActionReturnRequeue(double _timeToWakeup,
                           String unitMessage)
Constructor for the ActionReturnRequeue object
Parameters:
_timeToWakeup - Milliseconds until next call to handler.
unitMessage - Return message from handler.
Method Detail

getTimeToWakeup

public long getTimeToWakeup()
Gets the number of milliseconds until next call to handler.
Returns:
Milliseconds until next call to handler.