Class TransactDatabaseLocker

  extended by org.apache.activemq.util.ServiceSupport
      extended by
          extended by
              extended by
All Implemented Interfaces:
Locker, Service

public class TransactDatabaseLocker
extends DefaultDatabaseLocker

Represents an exclusive lock on a database to avoid multiple brokers running against the same logical database.

Field Summary
Fields inherited from class
connection, dataSource, exceptionHandler, lockCreateStatement, lockUpdateStatement, queryTimeout, statements, stopping
Fields inherited from class
DEFAULT_LOCK_ACQUIRE_SLEEP_INTERVAL, failIfLocked, lockAcquireSleepInterval, name
Constructor Summary
Method Summary
 void doStart()
Methods inherited from class
configure, doStop, getExceptionHandler, getLockAcquireSleepInterval, getQueryTimeout, keepAlive, setExceptionHandler, setLockAcquireSleepInterval, setQueryTimeout
Methods inherited from class
setFailIfLocked, setName
Methods inherited from class org.apache.activemq.util.ServiceSupport
addServiceListener, dispose, isStarted, isStopped, isStopping, postStop, preStart, removeServiceListener, start, stop
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.activemq.Service
start, stop

Constructor Detail


public TransactDatabaseLocker()
Method Detail


public void doStart()
             throws Exception
doStart in class DefaultDatabaseLocker

Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.