Class DenormalisedLockService
java.lang.Object
com.atlassian.confluence.security.denormalisedpermissions.impl.manage.DenormalisedLockService
Allows to acquire DB locks. Could be useful to prevent parallel execution.
- Since:
- 7.11.0
- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructorsConstructorDescriptionDenormalisedLockService(org.hibernate.SessionFactory sessionFactory, org.springframework.transaction.PlatformTransactionManager transactionManager) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidAcquires the lock.getRecord(DenormalisedLockService.LockName lockName) voidonApplicationStarted(ApplicationStartedEvent applicationStartedEvent) 
- 
Constructor Details- 
DenormalisedLockServicepublic DenormalisedLockService(org.hibernate.SessionFactory sessionFactory, org.springframework.transaction.PlatformTransactionManager transactionManager) 
 
- 
- 
Method Details- 
acquireLockForTransactionAcquires the lock. Must be called from an existing transaction. Released automatically when the transaction finishes- Parameters:
- lockName- the name of the lock
 
- 
getRecord
- 
onApplicationStarted
 
-