liquibase.lockservice
Interface LockService

All Superinterfaces:
PrioritizedService
All Known Implementing Classes:
LockServiceImpl, OfflineLockService, StandardLockService

public interface LockService
extends PrioritizedService

Author:
John Sanda

Field Summary
 
Fields inherited from interface liquibase.servicelocator.PrioritizedService
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT
 
Method Summary
 boolean acquireLock()
           
 void destroy()
           
 void forceReleaseLock()
          Releases whatever locks are on the database change log table
 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()
           
 
Methods inherited from interface liquibase.servicelocator.PrioritizedService
getPriority
 

Method Detail

supports

boolean supports(Database database)

setDatabase

void setDatabase(Database database)

setChangeLogLockWaitTime

void setChangeLogLockWaitTime(long changeLogLockWaitTime)

setChangeLogLockRecheckTime

void setChangeLogLockRecheckTime(long changeLogLocRecheckTime)

hasChangeLogLock

boolean hasChangeLogLock()

waitForLock

void waitForLock()
                 throws LockException
Throws:
LockException

acquireLock

boolean acquireLock()
                    throws LockException
Throws:
LockException

releaseLock

void releaseLock()
                 throws LockException
Throws:
LockException

listLocks

DatabaseChangeLogLock[] listLocks()
                                  throws LockException
Throws:
LockException

forceReleaseLock

void forceReleaseLock()
                      throws LockException,
                             DatabaseException
Releases whatever locks are on the database change log table

Throws:
LockException
DatabaseException

reset

void reset()
Clears information the lock handler knows about the tables. Should only be called by Liquibase internal calls


init

void init()
          throws DatabaseException
Throws:
DatabaseException

destroy

void destroy()
             throws DatabaseException
Throws:
DatabaseException


Copyright © 2016 Liquibase.org. All rights reserved.