Skip to content

Instantly share code, notes, and snippets.

@anjanashankar9
Created December 20, 2019 09:07
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/45f8a13ccf214428300f1935fb4d27d2 to your computer and use it in GitHub Desktop.
Save anjanashankar9/45f8a13ccf214428300f1935fb4d27d2 to your computer and use it in GitHub Desktop.
public static void setData(CuratorFramework client, String path, String data) throws Exception {
byte[] payload = data.getBytes();
client.setData()
.forPath(path, payload);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment