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 |
---|---|
|
ServerLock(String lock_name) |
protected |
ServerLock(String lock_name,
Owner owner) |
Modifier and Type | Method and Description |
---|---|
protected void |
addToQueue(Locking.Request req) |
protected Locking.Request |
getNextRequest() |
protected Locking.Response |
handleRequest(Locking.Request req) |
protected Locking.Response |
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 Locking.Response |
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 ServerLock(String lock_name)
protected Locking.Response handleRequest(Locking.Request req)
protected Locking.Response handleView(List<Address> members)
protected void addToQueue(Locking.Request req)
protected boolean isRequestPresent(Locking.Type type, Owner owner)
protected void removeRequest(Locking.Type type, Owner owner)
protected Locking.Request getNextRequest()
protected Locking.Response processQueue()
protected void setOwner(Owner owner)
public boolean isEmpty()
Copyright © 2020 JBoss, a division of Red Hat. All rights reserved.