|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.sys.TimeOut
| Field Summary | |
boolean |
expired
|
static TimeOut |
Forever
|
static TimeOut |
Immediate
|
static int |
Infinite
This is the value for an infinite timeout in milliseconds, equal to -1. |
protected int |
interval
|
protected int |
started
|
static int |
Zero
This is the value for a zero timeout in milliseconds, equal to 0. |
| Constructor Summary | |
TimeOut(int time)
Create a timeout with the specified number of milliseconds. |
|
| Method Summary | |
int |
elapsed()
How many milliseconds has elapsed since the TimeOut was started/reset. |
void |
expire()
Force it to expire. |
TimeOut |
getNew()
Get a copy of this TimeOut, i.e. |
boolean |
hasExpired()
Has this TimeOut expired yet? |
void |
multiThreadedWait(Object obj)
|
static int |
now()
|
int |
remaining()
How many milliseconds remaining? If it returns -1 it means that it will never timeout. |
TimeOut |
reset()
|
void |
wait(Object obj)
This will block the current thread until the TimeOut expires. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, toString |
| Field Detail |
public static final int Infinite
public static final int Zero
protected int started
protected int interval
public boolean expired
public static TimeOut Forever
public static TimeOut Immediate
| Constructor Detail |
public TimeOut(int time)
| Method Detail |
public static int now()
public TimeOut reset()
public boolean hasExpired()
public int remaining()
public int elapsed()
public void expire()
public TimeOut getNew()
public void wait(Object obj)
public void multiThreadedWait(Object obj)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||