Class PassThruLockRegistry
java.lang.Object
org.springframework.integration.support.locks.PassThruLockRegistry
- All Implemented Interfaces:
- LockRegistry
The 
LockRegistry implementation 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.- Since:
- 2.2
- Author:
- Oleg Zhurakousky, Gary Russell
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.integration.support.locks.LockRegistryexecuteLocked, executeLocked, executeLocked, executeLocked
- 
Constructor Details- 
PassThruLockRegistrypublic PassThruLockRegistry()
 
- 
- 
Method Details- 
obtainDescription copied from interface:LockRegistryObtain the lock associated with the parameter object.- Specified by:
- obtainin interface- LockRegistry
- Parameters:
- lockKey- The object with which the lock is associated.
- Returns:
- The associated lock.
 
 
-