|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Handle time in a Xholon application.
Field Summary | |
static int |
NUM_MILLISECONDS_PER_SECOND
|
static int |
TIMERTYPE_ABSOLUTE
|
static int |
TIMERTYPE_RELATIVE
|
static int |
TIMERTYPE_REPEAT
|
Method Summary | |
void |
cancel(XholonTimerTask xhTimerTask)
Cancel a relative, repeat or absolute timeout. |
void |
cancelAll()
Cancel all timeouts. |
XholonTimerTask |
timeoutAbsolute(IXholon clientNode,
java.util.Date time)
Timeout at a specified absolute time in the future. |
XholonTimerTask |
timeoutRelative(IXholon clientNode,
long delay)
Timeout after a specified number of milliseconds, relative to the current time. |
XholonTimerTask |
timeoutRelative(IXholon clientNode,
java.lang.Object data,
long delay)
Timeout after a specified number of milliseconds, relative to the current time. |
XholonTimerTask |
timeoutRepeat(IXholon clientNode,
long delay,
long period)
Timeout repeatedly every so many milliseconds. |
XholonTimerTask |
timeoutRepeat(IXholon clientNode,
java.lang.Object data,
long delay,
long period)
Timeout repeatedly every so many milliseconds. |
Field Detail |
public static final int NUM_MILLISECONDS_PER_SECOND
public static final int TIMERTYPE_RELATIVE
public static final int TIMERTYPE_REPEAT
public static final int TIMERTYPE_ABSOLUTE
Method Detail |
public XholonTimerTask timeoutRelative(IXholon clientNode, long delay)
clientNode
- The xholon client node that will receive a message when the timeout occurs.delay
- The number of milliseconds to wait before timing out.public XholonTimerTask timeoutRelative(IXholon clientNode, java.lang.Object data, long delay)
clientNode
- The xholon client node that will receive a message when the timeout occurs.data
- User data to return as part of the message when the timeout occurs.delay
- The number of milliseconds to wait before timing out.public XholonTimerTask timeoutRepeat(IXholon clientNode, long delay, long period)
clientNode
- The xholon client node that will receive a message each time the timeout occurs.delay
- The number of milliseconds to delay before the first timeout occurs.period
- The number of milliseconds in each timeout period, after the first timeout.public XholonTimerTask timeoutRepeat(IXholon clientNode, java.lang.Object data, long delay, long period)
clientNode
- The xholon client node that will receive a message each time the timeout occurs.data
- User data to return as part of the message when the timeout occurs.delay
- The number of milliseconds to delay before the first timeout occurs.period
- The number of milliseconds in each timeout period, after the first timeout.public XholonTimerTask timeoutAbsolute(IXholon clientNode, java.util.Date time)
time
- The absolute time and date at which the timeout will occur.clientNode
- The xholon client node that will receive a message when the timeout occurs.public void cancel(XholonTimerTask xhTimerTask)
public void cancelAll()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |