public final class PassThruLockRegistry extends Object implements LockRegistry
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.public Lock obtain(Object lockKey)
LockRegistryobtain 在接口中 LockRegistrylockKey - The object with which the lock is associated.Copyright © 2018 Pivotal Software, Inc.. All rights reserved.