public class ZooKeeperClientHAServices extends Object implements ClientHighAvailabilityServices
ClientHighAvailabilityServices
.Constructor and Description |
---|
ZooKeeperClientHAServices(CuratorFrameworkWithUnhandledErrorListener curatorFrameworkWrapper,
Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
LeaderRetrievalService |
getClusterRestEndpointLeaderRetriever()
Get the leader retriever for the cluster's rest endpoint.
|
public ZooKeeperClientHAServices(@Nonnull CuratorFrameworkWithUnhandledErrorListener curatorFrameworkWrapper, @Nonnull Configuration configuration)
public LeaderRetrievalService getClusterRestEndpointLeaderRetriever()
ClientHighAvailabilityServices
getClusterRestEndpointLeaderRetriever
in interface ClientHighAvailabilityServices
public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.