public interface Lockable
Locker to guarantee that only single instance is running| Modifier and Type | Method and Description |
|---|---|
Locker |
createDefaultLocker()
Create a default locker
|
long |
getLockKeepAlivePeriod() |
void |
setLocker(Locker locker)
Set locker to be used
|
void |
setLockKeepAlivePeriod(long lockKeepAlivePeriod)
Period (in milliseconds) on which
Locker.keepAlive() should be checked |
void |
setStopOnError(boolean stopOnError)
Stop the broker if the locker get an exception while processing lock.
|
void |
setUseLock(boolean useLock)
Turn locking on/off on the resource
|
void setUseLock(boolean useLock)
useLock - void setStopOnError(boolean stopOnError)
stopOnError - Locker createDefaultLocker() throws IOException
IOExceptionvoid setLocker(Locker locker) throws IOException
locker - IOExceptionvoid setLockKeepAlivePeriod(long lockKeepAlivePeriod)
Locker.keepAlive() should be checkedlockKeepAlivePeriod - long getLockKeepAlivePeriod()
Copyright © 2005–2020 The Apache Software Foundation. All rights reserved.