|
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.WrapperReentrantGate
public class WrapperReentrantGate
A Gate implementation that allows for 2^31 reentrant calls by a single thread.
| Constructor Summary | |
|---|---|
WrapperReentrantGate()Default constructor. |
|
WrapperReentrantGate(Gate gate)Construct a WrapperReentrantGate around the specified underlying gate. |
|
| 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 WrapperReentrantGate()
public WrapperReentrantGate(Gate gate)
gate - a Gate to be wrapped| 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 void open()
open in interface Gatepublic 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 isEnteredByCurrentThread()
isEnteredByCurrentThread in interface Gatepublic boolean isClosed()
isClosed 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 | |||||||