|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.sgs.impl.util.lock.LockRequest<K>
K - the type of keypublic class LockRequest<K>
A class representing a request for a lock made to a LockManager.
| Constructor Summary | |
|---|---|
LockRequest(Locker<K> locker,
K key,
boolean forWrite,
boolean upgrade)
Creates a lock request. |
|
| Method Summary | |
|---|---|
boolean |
getForWrite()
Returns whether the request was for write. |
K |
getKey()
Returns the key identifying the lock. |
Locker<K> |
getLocker()
Returns the locker that requested the lock. |
boolean |
getUpgrade()
Returns whether the request was for an upgrade. |
String |
toString()
Print fields, for debugging. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LockRequest(Locker<K> locker,
K key,
boolean forWrite,
boolean upgrade)
locker - the locker that requested the lockkey - the key identifying the lockforWrite - whether a write lock was requestedupgrade - whether an upgrade was requested| Method Detail |
|---|
public String toString()
toString in class Objectpublic Locker<K> getLocker()
public K getKey()
public boolean getForWrite()
public boolean getUpgrade()
|
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 | |||||||||