|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.entityfs.lock.cmd.LockCommandExecutorImpl
public class LockCommandExecutorImpl
This is the default implementation of the LockCommandExecutor
interface.
The LockCommand:s understood by this class are:
The locking strategy rules implemented are, in this order of precedence:
This class does not contain any mutable internal state; the singleton
instance INSTANCE may be used instead of instantiating the class.
| Field Summary | |
|---|---|
static LockCommandExecutorImpl |
INSTANCE
Since this class does not contain any mutable internal state, this singleton instance may be used instead of instantiating the class. |
| Constructor Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final LockCommandExecutorImpl INSTANCE
| Constructor Detail |
|---|
public LockCommandExecutorImpl()
| Method Detail |
|---|
public LockCollection execute(LockCommand... commands)
LockCommandExecutorImplementations 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.
execute in interface LockCommandExecutorcommands - The lock commands. May be null.
public LockCollection execute(Collection<? extends LockCommand> c)
LockCommandExecutorImplementations 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.
execute in interface LockCommandExecutorc - The collection of lock commands. May be null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||