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 |
start()
Curator will call this method when
CuratorZookeeperClient.start() is
called |
void start() throws Exception
CuratorZookeeperClient.start()
is
calledException
- errorsString getConnectionString()
ZooKeeper.ZooKeeper(String, int, Watcher)
etc.)void close() throws IOException
CuratorZookeeperClient.close()
is calledclose
in interface AutoCloseable
close
in interface Closeable
IOException
- errorsCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.