liquibase.lockservice.LockService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liquibase-core Show documentation
Show all versions of liquibase-core Show documentation
Liquibase is a tool for managing and executing database changes.
The newest version!
package liquibase.lockservice;
import liquibase.database.Database;
import liquibase.exception.DatabaseException;
import liquibase.exception.LockException;
import liquibase.servicelocator.PrioritizedService;
public interface LockService extends PrioritizedService {
boolean supports(Database database);
void setDatabase(Database database);
void setChangeLogLockWaitTime(long changeLogLockWaitTime);
void setChangeLogLockRecheckTime(long changeLogLockRecheckTime);
boolean hasChangeLogLock();
void waitForLock() throws LockException;
boolean acquireLock() throws LockException;
void releaseLock() throws LockException;
DatabaseChangeLogLock[] listLocks() throws LockException;
/**
* Releases whatever locks are on the database change log table
*/
void forceReleaseLock() throws LockException, DatabaseException;
/**
* Clears information the lock handler knows about the tables. Should only be called by Liquibase internal calls
*/
void reset();
void init() throws DatabaseException;
void destroy() throws DatabaseException;
}