ACLable<java.lang.String>, ACLBackgroundPathAndBytesable<java.lang.String>, ACLCreateModeBackgroundPathAndBytesable<java.lang.String>, Backgroundable<java.lang.String>, BackgroundPathAndBytesable<java.lang.String>, Compressible<java.lang.String>, CreateBuilderMain, CreateModable<java.lang.String>, ParentACLable<java.lang.String>, PathAndBytesable<java.lang.String>, Statable<java.lang.String>CreateBuilderImplpublic interface CreateBuilder extends CreateBuilderMain
| Modifier and Type | Method | Description |
|---|---|---|
CreateBuilder2 |
orSetData() |
If the ZNode already exists, Curator will instead call setData()
|
CreateBuilder2 |
orSetData(int version) |
If the ZNode already exists, Curator will instead call setData()
|
CreateBuilderMain |
withTtl(long ttl) |
Specify a TTL when mode is
CreateMode.PERSISTENT_WITH_TTL or
CreateMode.PERSISTENT_SEQUENTIAL_WITH_TTL. |
inBackground, inBackground, inBackground, inBackground, inBackground, inBackgroundcompressedcreatingParentContainersIfNeeded, creatingParentsIfNeeded, withProtectedEphemeralSequential, withProtectionwithModewithACLforPath, forPathstoringStatInCreateBuilderMain withTtl(long ttl)
CreateMode.PERSISTENT_WITH_TTL or
CreateMode.PERSISTENT_SEQUENTIAL_WITH_TTL. If
the znode has not been modified within the given TTL, it will be deleted once it has no
children. The TTL unit is milliseconds and must be greater than 0 and less than or equal to
EphemeralType.MAX_TTL.ttl - the ttlCreateBuilder2 orSetData()
CreateBuilder2 orSetData(int version)
version - the version to use for CuratorFramework.setData()Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.