|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LockCommandExecutor
The LockCommandExecutor
's execute(Collection)
method takes a
collection of lock commands and executes them in an order that it decides to
be appropriate. It is used to implement an locking strategy such as
"parent first and hash code order".
The default implementation of this interface is
LockCommandExecutorImpl
.
Method Summary | |
---|---|
LockCollection |
execute(Collection<? extends LockCommand> c)
Execute the supplied lock commands and return the collection of locked locks. |
LockCollection |
execute(LockCommand... commands)
Execute the supplied lock commands and return the collection of locked locks. |
Method Detail |
---|
LockCollection execute(Collection<? extends LockCommand> c) throws EntityNotFoundException
Implementations should make sure that, when all locks are locked, they are valid with respect to the commands that were supplied. More specifically, that locked parent directories are still parent directories of the entities whose parents this method was instructed to lock.
c
- The collection of lock commands. May be null
.
EntityNotFoundException
- If any of the lock command involves a
deleted entity.LockCollection execute(LockCommand... commands) throws EntityNotFoundException
Implementations should make sure that, when all locks are locked, they are valid with respect to the commands that were supplied. More specifically, that locked parent directories are still parent directories of the entities whose parents this method was instructed to lock.
commands
- The lock commands. May be null
.
EntityNotFoundException
- If any of the lock command involves a
deleted entity.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |