public class OfflineLockService extends Object implements LockService
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT| Constructor and Description |
|---|
OfflineLockService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acquireLock() |
void |
destroy() |
void |
forceReleaseLock()
Releases whatever locks are on the database change log table
|
int |
getPriority() |
boolean |
hasChangeLogLock() |
void |
init() |
DatabaseChangeLogLock[] |
listLocks() |
void |
releaseLock() |
void |
reset()
Clears information the lock handler knows about the tables.
|
void |
setChangeLogLockRecheckTime(long changeLogLocRecheckTime) |
void |
setChangeLogLockWaitTime(long changeLogLockWaitTime) |
void |
setDatabase(Database database) |
boolean |
supports(Database database) |
void |
waitForLock() |
public int getPriority()
getPriority in interface PrioritizedServicepublic boolean supports(Database database)
supports in interface LockServicepublic void init()
throws DatabaseException
init in interface LockServiceDatabaseExceptionpublic void setDatabase(Database database)
setDatabase in interface LockServicepublic void setChangeLogLockWaitTime(long changeLogLockWaitTime)
setChangeLogLockWaitTime in interface LockServicepublic void setChangeLogLockRecheckTime(long changeLogLocRecheckTime)
setChangeLogLockRecheckTime in interface LockServicepublic boolean hasChangeLogLock()
hasChangeLogLock in interface LockServicepublic void waitForLock()
throws LockException
waitForLock in interface LockServiceLockExceptionpublic boolean acquireLock()
throws LockException
acquireLock in interface LockServiceLockExceptionpublic void releaseLock()
throws LockException
releaseLock in interface LockServiceLockExceptionpublic DatabaseChangeLogLock[] listLocks() throws LockException
listLocks in interface LockServiceLockExceptionpublic void forceReleaseLock()
throws LockException,
DatabaseException
LockServiceforceReleaseLock in interface LockServiceLockExceptionDatabaseExceptionpublic void reset()
LockServicereset in interface LockServicepublic void destroy()
throws DatabaseException
destroy in interface LockServiceDatabaseExceptionCopyright © 2018 Liquibase.org. All rights reserved.