Package org.jgroups.protocols
Class Locking.ServerLock
java.lang.Object
org.jgroups.protocols.Locking.ServerLock
- Enclosing class:
Locking
Server side queue for handling of lock requests (lock, release).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Locking.ServerConditionprotected final Stringprotected Ownerprotected final List<Locking.Request> -
Constructor Summary
ConstructorsModifierConstructorDescriptionServerLock(String lock_name) protectedServerLock(String lock_name, Owner owner) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected Locking.Requestprotected Locking.Responseprotected Locking.ResponsehandleView(List<Address> members) booleanisEmpty()protected booleanisRequestPresent(Locking.Type type, Owner owner) Checks if a certain request from a given owner is already in the queueprotected Locking.Responseprotected voidremoveRequest(Locking.Type type, Owner owner) protected voidtoString()
-
Field Details
-
lock_name
-
owner
-
queue
-
condition
-
-
Constructor Details
-
ServerLock
-
ServerLock
-
-
Method Details