|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiz.onixs.fix.engine.util.TimedWait
public abstract class TimedWait
An abstrac class for waiting until the condition becomes true.
Field Summary | |
---|---|
protected Object |
object_
The object we delegate to. |
Constructor Summary | |
---|---|
TimedWait()
Default Constructor. |
|
TimedWait(Object obj)
Constructor. |
Method Summary | |
---|---|
void |
broadcast()
Notify all threads waiting on the object_. |
abstract boolean |
condition()
Hook method that needs to be implemented by subclasses. |
void |
signal()
Notify any one thread waiting on the object_. |
void |
timedWait()
Wait until condition becomes true. |
void |
timedWait(long milliSec)
Template Method that implements the actual timed wait. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Object object_
Constructor Detail |
---|
public TimedWait()
public TimedWait(Object obj)
obj
- The Object that is delegated the wait() call.Method Detail |
---|
public abstract boolean condition()
public final void timedWait() throws InterruptedException
InterruptedException
- Interrupted during waitpublic final void timedWait(long milliSec) throws InterruptedException, TimeoutException
milliSec
- Amount of time to do wait for.
InterruptedException
- Interrupted during wait
TimeoutException
- Reached timeout specifiedpublic final void signal()
public final void broadcast()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |