Class SchemaBuilder
java.lang.Object
org.apache.curator.framework.schema.SchemaBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build a new schema from the currently set valuescanBeDeleted(boolean canBeDeleted) dataValidator(SchemaValidator schemaValidator) documentation(String documentation) ephemeral(Schema.Allowance ephemeral) sequential(Schema.Allowance sequential) watched(Schema.Allowance watched)
-
Method Details
-
build
Build a new schema from the currently set values- Returns:
- new schema
-
name
- Parameters:
name- unique name for this schema- Returns:
- this for chaining
-
documentation
- Parameters:
documentation- user displayable documentation for the schema- Returns:
- this for chaining
-
dataValidator
- Parameters:
schemaValidator- a data validator - will be used to validate data set for the znode- Returns:
- this for chaining
-
ephemeral
- Parameters:
ephemeral- whether can, must or cannot be ephemeral- Returns:
- this for chaining
-
sequential
- Parameters:
sequential- whether can, must or cannot be sequential- Returns:
- this for chaining
-
watched
- Parameters:
watched- whether can, must or cannot be watched- Returns:
- this for chaining
-
canBeDeleted
- Parameters:
canBeDeleted- true if znode can be deleted- Returns:
- this for chaining
-
metadata
- Parameters:
metadata- any field -> value you want- Returns:
- this for chaining
-