Package org.apache.activemq.store.jdbc
Interface DatabaseLocker
- All Superinterfaces:
org.apache.activemq.Service
Deprecated.
Represents some kind of lock service to ensure that a broker is the only master
-
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.Used by a timer to keep alive the lock.voidsetLockAcquireSleepInterval(long lockAcquireSleepInterval) Deprecated.set the delay interval in milliseconds between lock acquire attemptsvoidDeprecated.allow the injection of a jdbc persistence adapterMethods inherited from interface org.apache.activemq.Service
start, stop
-
Method Details
-
setPersistenceAdapter
Deprecated.allow the injection of a jdbc persistence adapter- Parameters:
adapter- the persistence adapter to use- Throws:
IOException
-
keepAlive
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:
IOException
-
setLockAcquireSleepInterval
void setLockAcquireSleepInterval(long lockAcquireSleepInterval) Deprecated.set the delay interval in milliseconds between lock acquire attempts- Parameters:
lockAcquireSleepInterval- the sleep interval in miliseconds
-
Lockerinstead