public abstract class ForwardingZKClientService extends ForwardingZKClient implements ZKClientService
ZKClientService.Builder| Modifier | Constructor and Description |
|---|---|
protected |
ForwardingZKClientService(ZKClientService delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(com.google.common.util.concurrent.Service.Listener listener,
Executor executor) |
com.google.common.base.Supplier<org.apache.zookeeper.ZooKeeper> |
getZooKeeperSupplier()
Returns a
Supplier of ZooKeeper that gives the current ZooKeeper in use at the moment
when Supplier.get() get called. |
boolean |
isRunning() |
com.google.common.util.concurrent.ListenableFuture<com.google.common.util.concurrent.Service.State> |
start() |
com.google.common.util.concurrent.Service.State |
startAndWait() |
com.google.common.util.concurrent.Service.State |
state() |
com.google.common.util.concurrent.ListenableFuture<com.google.common.util.concurrent.Service.State> |
stop() |
com.google.common.util.concurrent.Service.State |
stopAndWait() |
addConnectionWatcher, create, delete, exists, getACL, getChildren, getConnectString, getData, getDelegate, getSessionId, setACL, setDatacreate, create, create, delete, exists, getChildren, getData, setACL, setDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddConnectionWatcher, create, create, create, create, delete, delete, exists, exists, getACL, getChildren, getChildren, getConnectString, getData, getData, getSessionId, setACL, setACL, setData, setDataprotected ForwardingZKClientService(ZKClientService delegate)
public com.google.common.base.Supplier<org.apache.zookeeper.ZooKeeper> getZooKeeperSupplier()
ZKClientServiceSupplier of ZooKeeper that gives the current ZooKeeper in use at the moment
when Supplier.get() get called.getZooKeeperSupplier in interface ZKClientServiceSupplier<ZooKeeper>public com.google.common.util.concurrent.ListenableFuture<com.google.common.util.concurrent.Service.State> start()
start in interface com.google.common.util.concurrent.Servicepublic com.google.common.util.concurrent.Service.State startAndWait()
startAndWait in interface com.google.common.util.concurrent.Servicepublic boolean isRunning()
isRunning in interface com.google.common.util.concurrent.Servicepublic com.google.common.util.concurrent.Service.State state()
state in interface com.google.common.util.concurrent.Servicepublic com.google.common.util.concurrent.ListenableFuture<com.google.common.util.concurrent.Service.State> stop()
stop in interface com.google.common.util.concurrent.Servicepublic com.google.common.util.concurrent.Service.State stopAndWait()
stopAndWait in interface com.google.common.util.concurrent.Servicepublic void addListener(com.google.common.util.concurrent.Service.Listener listener,
Executor executor)
addListener in interface com.google.common.util.concurrent.ServiceCopyright © 2013-2016 The Apache Software Foundation. All rights reserved.