org.apache.activemq.store.jdbc
Interface DatabaseLocker

All Superinterfaces:
Service

Deprecated. As of 5.7.0, use more general Locker instead

@Deprecated
public interface DatabaseLocker
extends Service

Represents some kind of lock service to ensure that a broker is the only master


Method Summary
 boolean keepAlive()
          Deprecated. Used by a timer to keep alive the lock.
 void setLockAcquireSleepInterval(long lockAcquireSleepInterval)
          Deprecated. set the delay interval in milliseconds between lock acquire attempts
 void setPersistenceAdapter(JDBCPersistenceAdapter adapter)
          Deprecated. allow the injection of a jdbc persistence adapter
 
Methods inherited from interface org.apache.activemq.Service
start, stop
 

Method Detail

setPersistenceAdapter

void setPersistenceAdapter(JDBCPersistenceAdapter adapter)
                           throws java.io.IOException
Deprecated. 
allow the injection of a jdbc persistence adapter

Parameters:
adapter - the persistence adapter to use
Throws:
java.io.IOException

keepAlive

boolean keepAlive()
                  throws java.io.IOException
Deprecated. 
Used by a timer to keep alive the lock. If the method returns false the broker should be terminated if an exception is thrown, the lock state cannot be determined

Throws:
java.io.IOException

setLockAcquireSleepInterval

void setLockAcquireSleepInterval(long lockAcquireSleepInterval)
Deprecated. 
set the delay interval in milliseconds between lock acquire attempts

Parameters:
lockAcquireSleepInterval - the sleep interval in miliseconds


Copyright © 2005-2015 Red Hat, Inc.. All Rights Reserved.