public class ExampleClient extends org.apache.curator.framework.recipes.leader.LeaderSelectorListenerAdapter implements Closeable
LeaderSelectorListenerAdapter
which
has the recommended handling for connection state issuesConstructor and Description |
---|
ExampleClient(org.apache.curator.framework.CuratorFramework client,
String path,
String name) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
start() |
void |
takeLeadership(org.apache.curator.framework.CuratorFramework client) |
stateChanged
public void start() throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.