public interface EnsembleProvider extends Closeable
Modifier and Type | Method and Description |
---|---|
void |
close()
Curator will call this method when
CuratorZookeeperClient.close() is called |
String |
getConnectionString()
Return the current connection string to use.
|
void |
setConnectionString(String connectionString)
A new connection string event was received
|
void |
start()
Curator will call this method when
CuratorZookeeperClient.start() is
called |
boolean |
updateServerListEnabled()
Return true if this ensemble provider supports
ZooKeeper.updateServerList(String) |
void start() throws Exception
CuratorZookeeperClient.start()
is
calledException
- errorsString getConnectionString()
ZooKeeper(String, int, Watcher)
etc.)void close() throws IOException
CuratorZookeeperClient.close()
is calledclose
in interface AutoCloseable
close
in interface Closeable
IOException
- errorsvoid setConnectionString(String connectionString)
connectionString
- the new connection stringboolean updateServerListEnabled()
ZooKeeper.updateServerList(String)
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.