liquibase.lockservice
Class LockService

java.lang.Object
  extended by liquibase.lockservice.LockService

public class LockService
extends Object


Method Summary
 boolean acquireLock()
           
 void forceReleaseLock()
          Releases whatever locks are on the database change log table
static LockService getInstance(Database database)
           
 boolean hasChangeLogLock()
           
 DatabaseChangeLogLock[] listLocks()
           
 void releaseLock()
           
 void reset()
          Clears information the lock handler knows about the tables.
static void resetAll()
           
 void setChangeLogLockRecheckTime(long changeLogLocRecheckTime)
           
 void setChangeLogLockWaitTime(long changeLogLockWaitTime)
           
 void waitForLock()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static LockService getInstance(Database database)

setChangeLogLockWaitTime

public void setChangeLogLockWaitTime(long changeLogLockWaitTime)

setChangeLogLockRecheckTime

public void setChangeLogLockRecheckTime(long changeLogLocRecheckTime)

hasChangeLogLock

public boolean hasChangeLogLock()

waitForLock

public void waitForLock()
                 throws LockException
Throws:
LockException

acquireLock

public boolean acquireLock()
                    throws LockException
Throws:
LockException

releaseLock

public void releaseLock()
                 throws LockException
Throws:
LockException

listLocks

public DatabaseChangeLogLock[] listLocks()
                                  throws LockException
Throws:
LockException

forceReleaseLock

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

Throws:
LockException
DatabaseException

reset

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


resetAll

public static void resetAll()


Copyright © 2012 Liquibase.org. All Rights Reserved.