public interface ZKClientService extends ZKClient, com.google.common.util.concurrent.Service
ZKClient
that extends from Service
to provide lifecycle management functions.
The Service.start()
method needed to be called before calling any other method on this interface.
When the client is no longer needed, call Service.stop()
to release any resources that it holds.Modifier and Type | Interface and Description |
---|---|
static class |
ZKClientService.Builder
Builder for creating an implementation of
ZKClientService . |
Modifier and Type | Method and Description |
---|---|
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. |
addConnectionWatcher, create, create, create, create, delete, delete, exists, exists, getACL, getChildren, getChildren, getConnectString, getData, getData, getSessionId, setACL, setACL, setData, setData
Copyright © 2013-2016 The Apache Software Foundation. All rights reserved.