|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.cache.util.ThreadGate
public class ThreadGate
A reclosable gate with timeout support.
| Constructor Summary | |
|---|---|
ThreadGate()
|
|
| Method Summary | |
|---|---|
void |
await()
Waits for the gate to open. |
boolean |
await(long time)
Waits for the gate to open or the specified time to elapse. |
void |
close()
Close the gate. |
void |
open()
Open the gate. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadGate()
| Method Detail |
|---|
public void open()
public void close()
public void await()
throws InterruptedException
InterruptedException - if this thread is interrupted
public boolean await(long time)
throws InterruptedException
time - the maximum time in milliseconds to wait.
InterruptedException - if this thread is interrupted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||