Package org.apache.pulsar.zookeeper
Class ZookeeperBkClientFactoryImpl
- java.lang.Object
-
- org.apache.pulsar.zookeeper.ZookeeperBkClientFactoryImpl
-
- All Implemented Interfaces:
ZooKeeperClientFactory
public class ZookeeperBkClientFactoryImpl extends java.lang.Object implements ZooKeeperClientFactory
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.pulsar.zookeeper.ZooKeeperClientFactory
ZooKeeperClientFactory.SessionType
-
-
Constructor Summary
Constructors Constructor Description ZookeeperBkClientFactoryImpl(org.apache.bookkeeper.common.util.OrderedExecutor executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<org.apache.zookeeper.ZooKeeper>create(java.lang.String serverList, ZooKeeperClientFactory.SessionType sessionType, int zkSessionTimeoutMillis)Return a future yielding a connected ZooKeeper client
-
-
-
Method Detail
-
create
public java.util.concurrent.CompletableFuture<org.apache.zookeeper.ZooKeeper> create(java.lang.String serverList, ZooKeeperClientFactory.SessionType sessionType, int zkSessionTimeoutMillis)Description copied from interface:ZooKeeperClientFactoryReturn a future yielding a connected ZooKeeper client- Specified by:
createin interfaceZooKeeperClientFactory- Returns:
-
-