public class CuratorFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<org.apache.curator.framework.CuratorFramework>, org.springframework.beans.factory.DisposableBean
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.curator.framework.CuratorFramework |
curator |
| Constructor and Description |
|---|
CuratorFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
String |
getConnectString() |
org.apache.curator.framework.CuratorFramework |
getObject() |
Class<?> |
getObjectType() |
String |
getPassword() |
int |
getTimeout() |
org.apache.zookeeper.Watcher |
getWatcher() |
boolean |
isSingleton() |
void |
setConnectString(String connectString) |
void |
setPassword(String password) |
void |
setTimeout(int timeout) |
void |
setWatcher(org.apache.zookeeper.Watcher watcher) |
public String getConnectString()
public void setConnectString(String connectString)
public org.apache.zookeeper.Watcher getWatcher()
public void setWatcher(org.apache.zookeeper.Watcher watcher)
public String getPassword()
public void setPassword(String password)
public int getTimeout()
public void setTimeout(int timeout)
public org.apache.curator.framework.CuratorFramework getObject()
throws Exception
getObject in interface org.springframework.beans.factory.FactoryBean<org.apache.curator.framework.CuratorFramework>Exceptionpublic Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<org.apache.curator.framework.CuratorFramework>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<org.apache.curator.framework.CuratorFramework>Copyright © 2011–2014 Red Hat. All rights reserved.