-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
LockService.java
41 lines (26 loc) · 1.09 KB
/
LockService.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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 changeLogLocRecheckTime);
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;
}