|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.sgs.impl.util.lock.Locker<K>
com.sun.sgs.impl.util.lock.BasicLocker<K>
K - the type of keypublic class BasicLocker<K>
Records information about an entity that requests locks from a LockManager and that permits only a single active lock request.
| Field Summary |
|---|
| Fields inherited from class com.sun.sgs.impl.util.lock.Locker |
|---|
lockManager |
| Constructor Summary | |
|---|---|
BasicLocker(LockManager<K> lockManager)
Creates an instance of this class. |
|
| Method Summary | |
|---|---|
(package private) LockAttemptResult<K> |
getWaitingFor()
Checks if this locker is waiting for a lock. |
(package private) void |
setWaitingFor(LockAttemptResult<K> waitingFor)
Records that this locker is waiting for a lock, or marks that it is not waiting if the argument is null. |
| Methods inherited from class com.sun.sgs.impl.util.lock.Locker |
|---|
checkAllowSync, clearConflict, getConflict, getLockManager, getLockTimeoutTime, newLockRequest, noteSync, noteUnsync |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicLocker(LockManager<K> lockManager)
lockManager - the lock manager for this locker| Method Detail |
|---|
LockAttemptResult<K> getWaitingFor()
This implementation returns the lock attempt request associated with this locker, if any.
getWaitingFor in class Locker<K>null if it is not waitingvoid setWaitingFor(LockAttemptResult<K> waitingFor)
null. If waitingFor is not
null, then it should represent a conflict, and it's conflict field must not be null. This implementation sets the lock attempt request associated with this locker.
setWaitingFor in class Locker<K>waitingFor - the lock or null
IllegalArgumentException - if waitingFor is not null and its conflict field is null
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||