Class MongoLockService
java.lang.Object
liquibase.nosql.lockservice.AbstractNoSqlLockService<MongoLiquibaseDatabase>
liquibase.ext.mongodb.lockservice.MongoLockService
- All Implemented Interfaces:
liquibase.lockservice.LockService,liquibase.servicelocator.PrioritizedService
-
Field Summary
Fields inherited from interface liquibase.servicelocator.PrioritizedService
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidprotected voidprotected Booleanprotected liquibase.logging.Loggerprotected BooleanisLocked()protected List<liquibase.lockservice.DatabaseChangeLogLock>protected intreplaceLock(boolean locked) booleansupports(liquibase.database.Database database) Methods inherited from class liquibase.nosql.lockservice.AbstractNoSqlLockService
acquireLock, destroy, forceReleaseLock, getChangeLogLockRecheckTime, getChangeLogLockWaitTime, getDatabase, getDatabaseChangeLogLockTableName, getExecutor, getPriority, hasChangeLogLock, init, listLocks, releaseLock, reset, setChangeLogLockRecheckTime, setChangeLogLockWaitTime, setDatabase, waitForLock
-
Constructor Details
-
MongoLockService
public MongoLockService()
-
-
Method Details
-
supports
public boolean supports(liquibase.database.Database database) -
isLocked
- Specified by:
isLockedin classAbstractNoSqlLockService<MongoLiquibaseDatabase>- Throws:
liquibase.exception.DatabaseException
-
replaceLock
protected int replaceLock(boolean locked) throws liquibase.exception.DatabaseException - Specified by:
replaceLockin classAbstractNoSqlLockService<MongoLiquibaseDatabase>- Throws:
liquibase.exception.DatabaseException
-
queryLocks
protected List<liquibase.lockservice.DatabaseChangeLogLock> queryLocks() throws liquibase.exception.DatabaseException- Specified by:
queryLocksin classAbstractNoSqlLockService<MongoLiquibaseDatabase>- Throws:
liquibase.exception.DatabaseException
-
existsRepository
- Specified by:
existsRepositoryin classAbstractNoSqlLockService<MongoLiquibaseDatabase>- Throws:
liquibase.exception.DatabaseException
-
createRepository
protected void createRepository() throws liquibase.exception.DatabaseException- Specified by:
createRepositoryin classAbstractNoSqlLockService<MongoLiquibaseDatabase>- Throws:
liquibase.exception.DatabaseException
-
adjustRepository
protected void adjustRepository() throws liquibase.exception.DatabaseException- Specified by:
adjustRepositoryin classAbstractNoSqlLockService<MongoLiquibaseDatabase>- Throws:
liquibase.exception.DatabaseException
-
dropRepository
protected void dropRepository() throws liquibase.exception.DatabaseException- Specified by:
dropRepositoryin classAbstractNoSqlLockService<MongoLiquibaseDatabase>- Throws:
liquibase.exception.DatabaseException
-
getLogger
protected liquibase.logging.Logger getLogger()- Specified by:
getLoggerin classAbstractNoSqlLockService<MongoLiquibaseDatabase>
-