|
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.Base
com.tangosol.util.WrapperConcurrentMap.Lock
protected static class WrapperConcurrentMap.Lock
A lock object.
Constructor Summary | |
---|---|
protected |
WrapperConcurrentMap.Lock() Construct a new Lock object. |
Method Summary | |
---|---|
protected boolean |
assign(long cWait) Assign the ownership of this Lock to the calling thread. |
protected int |
getBlockCount() Return the blocked threads count. |
protected int |
getLockCount() Return the lock count. |
protected java.lang.Thread |
getLockThread() Return the Thread object holding this Lock. |
protected java.lang.String |
getLockTypeDescription() Return a human readable decription of the Lock type |
protected boolean |
isDirty() Checks whether or not this Lock object is held by another thread. |
protected boolean |
isDiscardable() Checks whether or not this Lock object is discardable. |
protected boolean |
isOwnedByCaller() Checks whether or not this Lock object is held by the calling thread. |
protected boolean |
release() Release this Lock. |
java.lang.String |
toString() Return a human readable decription of the Lock |
protected long |
waitForNotify(long cWait) Wait for a Lock release notification. |
Constructor Detail |
---|
protected WrapperConcurrentMap.Lock()
Method Detail |
---|
protected boolean assign(long cWait)
Note: caller of this method is expected to hold a synchronization monitor for the Lock object while making this call.
cWait
- the number of milliseconds to continue trying to obtain a lock; pass zero to return immediately; pass -1 to block the calling thread until the lock could be obtainedprotected long waitForNotify(long cWait)
Note: caller of this method is expected to hold a synchronization monitor for the Lock object while making this call.
cWait
- the number of milliseconds to continue waiting; pass -1 to block the calling thread indefinitelyprotected boolean release()
Note: caller of this method is expected to hold a synchronization monitor for the Lock object while making this call.
protected boolean isDirty()
Note: caller of this method is expected to hold a synchronization monitor for the Lock object while making this call.
protected boolean isOwnedByCaller()
Note: unlike other methods of this class, the caller of this method is not required to hold a synchronization monitor for the Lock object while making this call.
protected boolean isDiscardable()
Note: caller of this method is expected to hold a synchronization monitor for the Lock object while making this call.
protected java.lang.Thread getLockThread()
protected int getLockCount()
protected int getBlockCount()
protected java.lang.String getLockTypeDescription()
public java.lang.String toString()
|
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 |