|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.cache.lock.LockMap
Provide lock ownership mapping.
Field Summary | |
static int |
OWNER_ANY
|
static int |
OWNER_READ
|
static int |
OWNER_WRITE
|
Constructor Summary | |
LockMap()
|
Method Summary | |
void |
addReader(Object owner)
Adding a reader owner. |
void |
addWriter(Object owner)
Adding a writer owner. |
boolean |
isOwner(Object owner,
int ownership)
Check whether this owner has reader or writer ownership. |
String |
printInfo()
Debugging information. |
List |
readerOwners()
|
void |
removeAll()
Remove all ownership. |
boolean |
removeReader(Object owner)
Remove reader ownership. |
Object |
removeWriter(Object owner)
Remove writer ownership. |
boolean |
upgrade(Object owner)
Upgrading current reader ownership to writer one. |
Object |
writerOwner()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int OWNER_ANY
public static final int OWNER_READ
public static final int OWNER_WRITE
Constructor Detail |
public LockMap()
Method Detail |
public boolean isOwner(Object owner, int ownership)
owner
- ownership
- Either OWNER_ANY
, OWNER_READ
,
or OWNER_WRITE
.
public void addReader(Object owner)
owner
- public void addWriter(Object owner)
owner
- public boolean upgrade(Object owner) throws OwnerNotExistedException
owner
-
OwnerNotExistedException
public List readerOwners()
public Object writerOwner()
public boolean removeReader(Object owner)
owner
-
public Object removeWriter(Object owner)
owner
-
public void removeAll()
public String printInfo()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |