public class CrudExamples extends Object
Constructor and Description |
---|
CrudExamples() |
Modifier and Type | Method and Description |
---|---|
static void |
create(CuratorFramework client,
String path,
byte[] payload) |
static void |
createEphemeral(CuratorFramework client,
String path,
byte[] payload) |
static String |
createEphemeralSequential(CuratorFramework client,
String path,
byte[] payload) |
static void |
createIdempotent(CuratorFramework client,
String path,
byte[] payload) |
static void |
delete(CuratorFramework client,
String path) |
static void |
deleteIdempotent(CuratorFramework client,
String path,
int currentVersion) |
static void |
guaranteedDelete(CuratorFramework client,
String path) |
static void |
setData(CuratorFramework client,
String path,
byte[] payload) |
static void |
setDataAsync(CuratorFramework client,
String path,
byte[] payload) |
static void |
setDataAsyncWithCallback(CuratorFramework client,
BackgroundCallback callback,
String path,
byte[] payload) |
static void |
setDataIdempotent(CuratorFramework client,
String path,
byte[] payload,
int currentVersion) |
static List<String> |
watchedGetChildren(CuratorFramework client,
String path) |
static List<String> |
watchedGetChildren(CuratorFramework client,
String path,
org.apache.zookeeper.Watcher watcher) |
public static void create(CuratorFramework client, String path, byte[] payload) throws Exception
Exception
public static void createEphemeral(CuratorFramework client, String path, byte[] payload) throws Exception
Exception
public static String createEphemeralSequential(CuratorFramework client, String path, byte[] payload) throws Exception
Exception
public static void createIdempotent(CuratorFramework client, String path, byte[] payload) throws Exception
Exception
public static void setData(CuratorFramework client, String path, byte[] payload) throws Exception
Exception
public static void setDataAsync(CuratorFramework client, String path, byte[] payload) throws Exception
Exception
public static void setDataAsyncWithCallback(CuratorFramework client, BackgroundCallback callback, String path, byte[] payload) throws Exception
Exception
public static void setDataIdempotent(CuratorFramework client, String path, byte[] payload, int currentVersion) throws Exception
Exception
public static void delete(CuratorFramework client, String path) throws Exception
Exception
public static void guaranteedDelete(CuratorFramework client, String path) throws Exception
Exception
public static void deleteIdempotent(CuratorFramework client, String path, int currentVersion) throws Exception
Exception
public static List<String> watchedGetChildren(CuratorFramework client, String path) throws Exception
Exception
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.