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, setData
create, create, create, delete, exists, getChildren, getData, setACL, setData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addConnectionWatcher, create, create, create, create, delete, delete, exists, exists, getACL, getChildren, getChildren, getConnectString, getData, getData, getSessionId, setACL, setACL, setData, setData
protected ForwardingZKClientService(ZKClientService delegate)
public com.google.common.base.Supplier<org.apache.zookeeper.ZooKeeper> getZooKeeperSupplier()
ZKClientService
Supplier
of ZooKeeper
that gives the current ZooKeeper
in use at the moment
when Supplier.get()
get called.getZooKeeperSupplier
in interface ZKClientService
Supplier<ZooKeeper>
public com.google.common.util.concurrent.ListenableFuture<com.google.common.util.concurrent.Service.State> start()
start
in interface com.google.common.util.concurrent.Service
public com.google.common.util.concurrent.Service.State startAndWait()
startAndWait
in interface com.google.common.util.concurrent.Service
public boolean isRunning()
isRunning
in interface com.google.common.util.concurrent.Service
public com.google.common.util.concurrent.Service.State state()
state
in interface com.google.common.util.concurrent.Service
public com.google.common.util.concurrent.ListenableFuture<com.google.common.util.concurrent.Service.State> stop()
stop
in interface com.google.common.util.concurrent.Service
public com.google.common.util.concurrent.Service.State stopAndWait()
stopAndWait
in interface com.google.common.util.concurrent.Service
public void addListener(com.google.common.util.concurrent.Service.Listener listener, Executor executor)
addListener
in interface com.google.common.util.concurrent.Service
Copyright © 2013-2016 The Apache Software Foundation. All rights reserved.