|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
| 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 GatecMillis - 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 GatecMillis - 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 Gatepublic boolean isClosedByCurrentThread()
isClosedByCurrentThread in interface Gatepublic boolean isClosed()
isClosed in interface Gatepublic boolean isEnteredByCurrentThread()
isEnteredByCurrentThread in interface Gatepublic void open()
open in interface Gate
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||