liquibase.lockservice
Class LockServiceImpl

java.lang.Object
  extended by liquibase.lockservice.LockServiceImpl
All Implemented Interfaces:
LockService, PrioritizedService

public class LockServiceImpl
extends Object
implements LockService


Field Summary
 
Fields inherited from interface liquibase.servicelocator.PrioritizedService
PRIORITY_DATABASE, PRIORITY_DEFAULT
 
Constructor Summary
LockServiceImpl()
           
 
Method Summary
 boolean acquireLock()
           
 void forceReleaseLock()
          Releases whatever locks are on the database change log table
 int getPriority()
           
 boolean hasChangeLogLock()
           
 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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockServiceImpl

public LockServiceImpl()
Method Detail

getPriority

public int getPriority()
Specified by:
getPriority in interface PrioritizedService

supports

public boolean supports(Database database)
Specified by:
supports in interface LockService

setDatabase

public void setDatabase(Database database)
Specified by:
setDatabase in interface LockService

setChangeLogLockWaitTime

public void setChangeLogLockWaitTime(long changeLogLockWaitTime)
Specified by:
setChangeLogLockWaitTime in interface LockService

setChangeLogLockRecheckTime

public void setChangeLogLockRecheckTime(long changeLogLocRecheckTime)
Specified by:
setChangeLogLockRecheckTime in interface LockService

hasChangeLogLock

public boolean hasChangeLogLock()
Specified by:
hasChangeLogLock in interface LockService

waitForLock

public void waitForLock()
                 throws LockException
Specified by:
waitForLock in interface LockService
Throws:
LockException

acquireLock

public boolean acquireLock()
                    throws LockException
Specified by:
acquireLock in interface LockService
Throws:
LockException

releaseLock

public void releaseLock()
                 throws LockException
Specified by:
releaseLock in interface LockService
Throws:
LockException

listLocks

public DatabaseChangeLogLock[] listLocks()
                                  throws LockException
Specified by:
listLocks in interface LockService
Throws:
LockException

forceReleaseLock

public void forceReleaseLock()
                      throws LockException,
                             DatabaseException
Description copied from interface: LockService
Releases whatever locks are on the database change log table

Specified by:
forceReleaseLock in interface LockService
Throws:
LockException
DatabaseException

reset

public void reset()
Description copied from interface: LockService
Clears information the lock handler knows about the tables. Should only be called by Liquibase internal calls

Specified by:
reset in interface LockService


Copyright © 2013 Liquibase.org. All Rights Reserved.