public class FileLockClusterService extends org.apache.camel.support.cluster.AbstractCamelClusterService<FileLockClusterView>
| Constructor and Description |
|---|
FileLockClusterService() |
| Modifier and Type | Method and Description |
|---|---|
protected FileLockClusterView |
createView(String namespace) |
protected void |
doStop() |
long |
getAcquireLockDelay() |
TimeUnit |
getAcquireLockDelayUnit() |
long |
getAcquireLockInterval() |
TimeUnit |
getAcquireLockIntervalUnit() |
String |
getRoot() |
void |
setAcquireLockDelay(long acquireLockDelay)
The time to wait before starting to try to acquire lock, default 1.
|
void |
setAcquireLockDelay(long pollDelay,
TimeUnit pollDelayUnit) |
void |
setAcquireLockDelayUnit(TimeUnit acquireLockDelayUnit)
The time unit fo the acquireLockDelay, default to TimeUnit.SECONDS.
|
void |
setAcquireLockInterval(long acquireLockInterval)
The time to wait between attempts to try to acquire lock, default 10.
|
void |
setAcquireLockInterval(long pollInterval,
TimeUnit pollIntervalUnit) |
void |
setAcquireLockIntervalUnit(TimeUnit acquireLockIntervalUnit)
The time unit fo the acquireLockInterva, default to TimeUnit.SECONDS.
|
void |
setRoot(String root)
Sets the root path.
|
doStart, getAttributes, getCamelContext, getId, getNamespaces, getOrder, getView, isLeader, releaseView, setAttribute, setAttributes, setCamelContext, setId, setOrder, startView, stopViewbuild, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected FileLockClusterView createView(String namespace) throws Exception
createView in class org.apache.camel.support.cluster.AbstractCamelClusterService<FileLockClusterView>Exceptionpublic String getRoot()
public void setRoot(String root)
public long getAcquireLockDelay()
public void setAcquireLockDelay(long acquireLockDelay)
public void setAcquireLockDelay(long pollDelay,
TimeUnit pollDelayUnit)
public TimeUnit getAcquireLockDelayUnit()
public void setAcquireLockDelayUnit(TimeUnit acquireLockDelayUnit)
public long getAcquireLockInterval()
public void setAcquireLockInterval(long acquireLockInterval)
public void setAcquireLockInterval(long pollInterval,
TimeUnit pollIntervalUnit)
public TimeUnit getAcquireLockIntervalUnit()
public void setAcquireLockIntervalUnit(TimeUnit acquireLockIntervalUnit)
protected void doStop()
throws Exception
doStop in class org.apache.camel.support.cluster.AbstractCamelClusterService<FileLockClusterView>ExceptionApache Camel