Created
December 20, 2019 09:10
-
-
Save anjanashankar9/86f9083eb389785164e5dcae1ab54287 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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