public abstract class AbstractNoSqlLockService<D extends AbstractNoSqlDatabase> extends Object implements liquibase.lockservice.LockService
| Constructor and Description |
|---|
AbstractNoSqlLockService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acquireLock() |
protected abstract void |
adjustRepository() |
protected abstract void |
createRepository() |
void |
destroy() |
protected abstract void |
dropRepository() |
protected abstract Boolean |
existsRepository() |
void |
forceReleaseLock() |
Long |
getChangeLogLockRecheckTime() |
Long |
getChangeLogLockWaitTime() |
D |
getDatabase() |
String |
getDatabaseChangeLogLockTableName() |
NoSqlExecutor |
getExecutor() |
protected abstract liquibase.logging.Logger |
getLogger() |
int |
getPriority() |
boolean |
hasChangeLogLock() |
void |
init() |
protected abstract Boolean |
isLocked() |
liquibase.lockservice.DatabaseChangeLogLock[] |
listLocks() |
protected abstract List<liquibase.lockservice.DatabaseChangeLogLock> |
queryLocks() |
void |
releaseLock() |
protected abstract int |
replaceLock(boolean locked) |
void |
reset() |
void |
setChangeLogLockRecheckTime(long changeLogLockRecheckTime) |
void |
setChangeLogLockWaitTime(long changeLogLockWaitTime) |
void |
setDatabase(liquibase.database.Database database) |
void |
waitForLock() |
public int getPriority()
getPriority in interface liquibase.servicelocator.PrioritizedServicepublic void setDatabase(liquibase.database.Database database)
setDatabase in interface liquibase.lockservice.LockServicepublic D getDatabase()
public NoSqlExecutor getExecutor()
public void init()
throws liquibase.exception.DatabaseException
init in interface liquibase.lockservice.LockServiceliquibase.exception.DatabaseExceptionpublic boolean hasChangeLogLock()
hasChangeLogLock in interface liquibase.lockservice.LockServicepublic void waitForLock()
throws liquibase.exception.LockException
waitForLock in interface liquibase.lockservice.LockServiceliquibase.exception.LockExceptionpublic boolean acquireLock()
throws liquibase.exception.LockException
acquireLock in interface liquibase.lockservice.LockServiceliquibase.exception.LockExceptionpublic void releaseLock()
throws liquibase.exception.LockException
releaseLock in interface liquibase.lockservice.LockServiceliquibase.exception.LockExceptionpublic liquibase.lockservice.DatabaseChangeLogLock[] listLocks()
throws liquibase.exception.LockException
listLocks in interface liquibase.lockservice.LockServiceliquibase.exception.LockExceptionpublic void forceReleaseLock()
throws liquibase.exception.LockException,
liquibase.exception.DatabaseException
forceReleaseLock in interface liquibase.lockservice.LockServiceliquibase.exception.LockExceptionliquibase.exception.DatabaseExceptionpublic void reset()
reset in interface liquibase.lockservice.LockServicepublic void destroy()
destroy in interface liquibase.lockservice.LockServicepublic String getDatabaseChangeLogLockTableName()
public Long getChangeLogLockRecheckTime()
public void setChangeLogLockRecheckTime(long changeLogLockRecheckTime)
setChangeLogLockRecheckTime in interface liquibase.lockservice.LockServicepublic Long getChangeLogLockWaitTime()
public void setChangeLogLockWaitTime(long changeLogLockWaitTime)
setChangeLogLockWaitTime in interface liquibase.lockservice.LockServiceprotected abstract liquibase.logging.Logger getLogger()
protected abstract Boolean existsRepository() throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseExceptionprotected abstract void createRepository()
throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseExceptionprotected abstract void adjustRepository()
throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseExceptionprotected abstract void dropRepository()
throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseExceptionprotected abstract Boolean isLocked() throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseExceptionprotected abstract int replaceLock(boolean locked)
throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseExceptionprotected abstract List<liquibase.lockservice.DatabaseChangeLogLock> queryLocks() throws liquibase.exception.DatabaseException
liquibase.exception.DatabaseExceptionCopyright © 2021 Liquibase.org. All rights reserved.