public class DenormalisedLockService extends Object implements org.springframework.beans.factory.DisposableBean
Modifier and Type | Class and Description |
---|---|
static class |
DenormalisedLockService.LockName |
Constructor and Description |
---|
DenormalisedLockService(com.atlassian.event.api.EventPublisher eventPublisher,
org.hibernate.SessionFactory sessionFactory,
org.springframework.transaction.PlatformTransactionManager transactionManager) |
Modifier and Type | Method and Description |
---|---|
void |
acquireLockForTransaction(DenormalisedLockService.LockName lockName)
Acquires the lock.
|
void |
destroy() |
DenormalisedLock |
getRecord(DenormalisedLockService.LockName lockName) |
void |
init() |
void |
onApplicationStarted(com.atlassian.config.lifecycle.events.ApplicationStartedEvent applicationStartedEvent) |
public DenormalisedLockService(com.atlassian.event.api.EventPublisher eventPublisher, org.hibernate.SessionFactory sessionFactory, org.springframework.transaction.PlatformTransactionManager transactionManager)
@PostConstruct public void init()
public void acquireLockForTransaction(DenormalisedLockService.LockName lockName)
lockName
- the name of the lockpublic DenormalisedLock getRecord(DenormalisedLockService.LockName lockName)
@EventListener public void onApplicationStarted(com.atlassian.config.lifecycle.events.ApplicationStartedEvent applicationStartedEvent)
Copyright © 2003–2021 Atlassian. All rights reserved.