org.jgroups.protocols
Class Locking.ServerLock
java.lang.Object
org.jgroups.protocols.Locking.ServerLock
- Enclosing class:
- Locking
protected class Locking.ServerLock
- extends java.lang.Object
Server side queue for handling of lock requests (lock, release).
- Author:
- Bela Ban
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
lock_name
protected final java.lang.String lock_name
current_owner
protected Owner current_owner
queue
protected final java.util.List<Locking.Request> queue
condition
protected final Locking.ServerCondition condition
Locking.ServerLock
public Locking.ServerLock(java.lang.String lock_name)
Locking.ServerLock
protected Locking.ServerLock(java.lang.String lock_name,
Owner owner)
handleRequest
protected void handleRequest(Locking.Request req)
handleView
protected void handleView(java.util.List<Address> members)
addToQueue
protected void addToQueue(Locking.Request req)
isRequestPresent
protected boolean isRequestPresent(Locking.Type type,
Owner owner)
- Checks if a certain request from a given owner is already in the queue
removeRequest
protected void removeRequest(Locking.Type type,
Owner owner)
processQueue
protected void processQueue()
setOwner
protected void setOwner(Owner owner)
isEmpty
public boolean isEmpty()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 1998-2012 Bela Ban / Red Hat. All Rights Reserved.