Modifier and Type | Field and Description |
---|---|
protected Locking.ServerCondition |
condition |
protected Owner |
current_owner |
protected String |
lock_name |
protected List<Locking.Request> |
queue |
Modifier | Constructor and Description |
---|---|
|
Locking.ServerLock(String lock_name) |
protected |
Locking.ServerLock(String lock_name,
Owner owner) |
Modifier and Type | Method and Description |
---|---|
protected void |
addToQueue(Locking.Request req) |
protected void |
handleRequest(Locking.Request req) |
protected void |
handleView(List<Address> members) |
boolean |
isEmpty() |
protected boolean |
isRequestPresent(Locking.Type type,
Owner owner)
Checks if a certain request from a given owner is already in the queue
|
protected void |
processQueue() |
protected void |
removeRequest(Locking.Type type,
Owner owner) |
protected void |
setOwner(Owner owner) |
String |
toString() |
protected final String lock_name
protected Owner current_owner
protected final List<Locking.Request> queue
protected final Locking.ServerCondition condition
public Locking.ServerLock(String lock_name)
protected void handleRequest(Locking.Request req)
protected void addToQueue(Locking.Request req)
protected boolean isRequestPresent(Locking.Type type, Owner owner)
protected void removeRequest(Locking.Type type, Owner owner)
protected void processQueue()
protected void setOwner(Owner owner)
public boolean isEmpty()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.