|
Spring Integration | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.integration.util.PassThruLockRegistry
public final class PassThruLockRegistry
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.
Constructor Summary | |
---|---|
PassThruLockRegistry()
|
Method Summary | |
---|---|
java.util.concurrent.locks.Lock |
obtain(java.lang.Object lockKey)
Obtains the lock associated with the parameter object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PassThruLockRegistry()
Method Detail |
---|
public java.util.concurrent.locks.Lock obtain(java.lang.Object lockKey)
LockRegistry
obtain
in interface LockRegistry
lockKey
- The object with which the lock is associated.
|
Spring Integration | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |