Package | Description |
---|---|
org.apache.zookeeper |
Modifier and Type | Method and Description |
---|---|
static CreateMode |
CreateMode.fromFlag(int flag)
Map an integer value to a CreateMode value
|
static CreateMode |
CreateMode.fromFlag(int flag,
CreateMode defaultMode)
Map an integer value to a CreateMode value
|
static CreateMode |
CreateMode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CreateMode[] |
CreateMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
String |
ZooKeeper.create(String path,
byte[] data,
List<ACL> acl,
CreateMode createMode)
Create a node with the given path.
|
void |
ZooKeeper.create(String path,
byte[] data,
List<ACL> acl,
CreateMode createMode,
AsyncCallback.Create2Callback cb,
Object ctx)
The asynchronous version of create.
|
void |
ZooKeeper.create(String path,
byte[] data,
List<ACL> acl,
CreateMode createMode,
AsyncCallback.Create2Callback cb,
Object ctx,
long ttl)
The asynchronous version of create with ttl.
|
void |
ZooKeeper.create(String path,
byte[] data,
List<ACL> acl,
CreateMode createMode,
AsyncCallback.StringCallback cb,
Object ctx)
The asynchronous version of create.
|
String |
ZooKeeper.create(String path,
byte[] data,
List<ACL> acl,
CreateMode createMode,
Stat stat)
Create a node with the given path and returns the Stat of that node.
|
String |
ZooKeeper.create(String path,
byte[] data,
List<ACL> acl,
CreateMode createMode,
Stat stat,
long ttl)
same as
ZooKeeper.create(String, byte[], List, CreateMode, Stat) but
allows for specifying a TTL when mode is PERSISTENT_WITH_TTL
or PERSISTENT_SEQUENTIAL_WITH_TTL . |
static CreateMode |
CreateMode.fromFlag(int flag,
CreateMode defaultMode)
Map an integer value to a CreateMode value
|
Copyright © 2017 The Apache Software Foundation