public class TransactionalLocks extends Object
TransactionalLocks class is used to manage the locks associated
with each TransactionalLock.LockArea. It's a singlegon that shoudl always be injected.| Modifier and Type | Method and Description |
|---|---|
ReadWriteLock |
getLock(TransactionalLock.LockArea lockArea)
Gets a lock for the specified lock area.
|
public ReadWriteLock getLock(TransactionalLock.LockArea lockArea)
TransactionalLock.LockArea is not enabled, then this will return an empty
Lock implementation which doesn't actually lock anything.lockArea - the lock area to get the lock for (not null).null).Copyright © 2022 Apache Software Foundation. All rights reserved.