|
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.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 wrappedMethod 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 void open()
open
in interface Gate
public 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 isEnteredByCurrentThread()
isEnteredByCurrentThread
in interface Gate
public boolean isClosed()
isClosed
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 |