Skip to content

Instantly share code, notes, and snippets.

@anjanashankar9
Created December 20, 2019 09:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anjanashankar9/86f9083eb389785164e5dcae1ab54287 to your computer and use it in GitHub Desktop.
Save anjanashankar9/86f9083eb389785164e5dcae1ab54287 to your computer and use it in GitHub Desktop.
public static String getData(CuratorFramework client, String path) throws Exception{
String str = new String(client.getData()
.usingWatcher(new WatcherImpl(client,path))
.forPath(path));
return str;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment