|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ToolkitLock
Provides primitive lock operations for the given ToolkitLockType
that was used to create an instance of this
lock. Multiple instances having the same name behave as same lock.
Method Summary | |
---|---|
Condition |
getCondition()
Returns the Condition associated with the Lock. |
ToolkitLockType |
getLockType()
Return the ToolkitLockType for this Lock. |
boolean |
isHeldByCurrentThread()
Indicates whether the current thread is holding this lock for getLockType() . |
Condition |
newCondition()
Always throws UnsupportedOperationException . |
Methods inherited from interface java.util.concurrent.locks.Lock |
---|
lock, lockInterruptibly, tryLock, tryLock, unlock |
Methods inherited from interface org.terracotta.toolkit.object.ToolkitObject |
---|
getName |
Method Detail |
---|
Condition newCondition() throws UnsupportedOperationException
UnsupportedOperationException
. ToolkitLock supports one condition per lock which can be
obtained by using method getCondition()
newCondition
in interface Lock
UnsupportedOperationException
- always throws this exceptionCondition getCondition()
UnsupportedOperationException
. e.g. for read level locks
ToolkitLockType getLockType()
ToolkitLockType
for this Lock.
boolean isHeldByCurrentThread()
getLockType()
.
getLockType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |