public final class PassThruLockRegistry extends java.lang.Object implements LockRegistry
LockRegistryimplementation which has no effect. Mainly used in cases where locking itself must be conditional but an extra IF statement would clutter the code. For example. In the FILE module FileWritingMessageHandler is initialized with this instance of LockRegistry by default since real locking is only required if its 'append' flag is set to true.
|Constructor and Description|
|Modifier and Type||Method and Description|
Obtains the lock associated with the parameter object.
public java.util.concurrent.locks.Lock obtain(java.lang.Object lockKey)