org.apache.camel.component.zookeeper
Class ZooKeeperConfiguration
java.lang.Object
org.apache.camel.component.zookeeper.ZooKeeperConfiguration
- All Implemented Interfaces:
- Cloneable
public class ZooKeeperConfiguration
- extends Object
- implements Cloneable
ZookeeperConfiguration
encapsulates the configuration used to
interact with a ZooKeeper cluster. Most typically it is parsed from endpoint
uri but may also be configured programatically and applied to a
ZooKeeperComponent
. A copy of this component's configuration will be
injected into any ZooKeeperEndpoint
s the component creates.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZooKeeperConfiguration
public ZooKeeperConfiguration()
addZookeeperServer
public void addZookeeperServer(String server)
getServers
public List<String> getServers()
setServers
public void setServers(List<String> servers)
getTimeout
public int getTimeout()
setTimeout
public void setTimeout(int timeout)
isListChildren
public boolean isListChildren()
setListChildren
public void setListChildren(boolean listChildren)
clearChanged
public void clearChanged()
isChanged
public boolean isChanged()
getConnectString
public String getConnectString()
setPath
public void setPath(String path)
getPath
public String getPath()
shouldRepeat
public boolean shouldRepeat()
setRepeat
public void setRepeat(boolean repeat)
copy
public ZooKeeperConfiguration copy()
shouldAwaitExistence
@Deprecated
public boolean shouldAwaitExistence()
- Deprecated. The usage of this option has no effect at all.
setAwaitExistence
@Deprecated
public void setAwaitExistence(boolean awaitExistence)
- Deprecated. The usage of this option has no effect at all.
getBackoff
public long getBackoff()
setBackoff
public void setBackoff(long backoff)
setCreate
public void setCreate(boolean shouldCreate)
shouldCreate
public boolean shouldCreate()
getCreateMode
public String getCreateMode()
setCreateMode
public void setCreateMode(String createMode)
isSendEmptyMessageOnDelete
public boolean isSendEmptyMessageOnDelete()
setSendEmptyMessageOnDelete
public void setSendEmptyMessageOnDelete(boolean sendEmptyMessageOnDelete)
Apache Camel