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, DEFAULT_LOCK_ACQUIRE_SLEEP_INTERVAL, exceptionHandler, lockCreateStatement, lockUpdateStatement, queryTimeout, statements, stopping
Fields inherited from class
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-2012 The Apache Software Foundation. All Rights Reserved.