|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LockCommand
This is a marker interface for a lock command, such as "lock this entity's
parent directory". Lock commands are used together with an
LockCommandExecutor
to lock a collection of locks in an order that is
compliant with a locking strategy.
Lock command implementations are required to implement the equals
and
hashCode
methods so that one lock command instance of a certain type
for a specific entity is equal to another instance of the same lock command
type for the same entity.
Lock command implementations are required to be immutable.
LockCommandExecutor
Method Summary | |
---|---|
ReadWriteLockable |
getLockable()
Get the lockable object that this lock command is for. |
Method Detail |
---|
ReadWriteLockable getLockable()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |