|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.ThreadGateLite
public final class ThreadGateLite
ThreadGateLite is a Gate implementation built around the ReentrantReadWriteLock
.
Constructor Summary | |
---|---|
ThreadGateLite() |
Method Summary | |
---|---|
boolean |
close(long cMillis) Close the gate. |
boolean |
enter(long cMillis) Enter the gate. |
void |
exit() Exit the gate. |
boolean |
isClosed() Determine if any thread has closed the gate. |
boolean |
isClosedByCurrentThread() Determine if the current thread has closed the gate. |
boolean |
isEnteredByCurrentThread() Determines if the current thread has entered the gate and not yet exited. |
void |
open() Re-open the closed gate. |
Constructor Detail |
---|
public ThreadGateLite()
Method Detail |
---|
public boolean close(long cMillis)
Gate.open()
method.close
in interface Gate
cMillis
- maximum number of milliseconds to wait; pass -1 to wait indefinitely or 0 to return immediatelypublic boolean enter(long cMillis)
Gate.exit()
method.enter
in interface Gate
cMillis
- maximum number of milliseconds to wait; pass -1 to wait indefinitely or 0 to return immediatelypublic void exit()
Gate.enter(long)
method.exit
in interface Gate
public boolean isClosedByCurrentThread()
isClosedByCurrentThread
in interface Gate
public boolean isClosed()
isClosed
in interface Gate
public boolean isEnteredByCurrentThread()
isEnteredByCurrentThread
in interface Gate
public void open()
open
in interface Gate
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |