@Inherited @Retention(value=RUNTIME) @Target(value=METHOD) public @interface TransactionalLock
TransactionalLock
annotation is used to provide advice around a
joinpoint which will invoke a lock. The lock is invoked before the method
begins and is released after it has executed.
This is mainly used in combination with Transactional
methods to
provide locking around the entire transaction in order to prevent other
methods from performing work before a transaction has completed.Modifier and Type | Required Element and Description |
---|---|
TransactionalLock.LockArea |
lockArea
The logic unit of work being locked.
|
TransactionalLock.LockType |
lockType |
public abstract TransactionalLock.LockArea lockArea
public abstract TransactionalLock.LockType lockType
Copyright © 2022 Apache Software Foundation. All rights reserved.