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 |
Method Summary |
long |
getTimeToWakeup()
Gets the number of milliseconds until next call to handler. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
timeToWakeup
private long timeToWakeup
- Description of the Field
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.
getTimeToWakeup
public long getTimeToWakeup()
- Gets the number of milliseconds until next call to handler.
- Returns:
- Milliseconds until next call to handler.