Package org.apache.curator.framework.api
Interface CreateBuilder
- All Superinterfaces:
ACLable<BackgroundPathAndBytesable<String>>
,ACLBackgroundPathAndBytesable<String>
,ACLCreateModeBackgroundPathAndBytesable<String>
,Backgroundable<ErrorListenerPathAndBytesable<String>>
,BackgroundPathAndBytesable<String>
,Compressible<CreateBackgroundModeStatACLable>
,CreateBuilderMain
,CreateModable<ACLBackgroundPathAndBytesable<String>>
,Idempotentable<CreateBuilder2>
,ParentACLable<BackgroundPathAndBytesable<String>>
,PathAndBytesable<String>
,Statable<CreateProtectACLCreateModePathAndBytesable<String>>
- All Known Implementing Classes:
CreateBuilderImpl
-
Method Summary
Modifier and TypeMethodDescriptionIf the ZNode already exists, Curator will instead call setData()orSetData
(int version) If the ZNode already exists, Curator will instead call setData()withTtl
(long ttl) Specify a TTL when mode isCreateMode.PERSISTENT_WITH_TTL
orCreateMode.PERSISTENT_SEQUENTIAL_WITH_TTL
.Methods inherited from interface org.apache.curator.framework.api.Backgroundable
inBackground, inBackground, inBackground, inBackground, inBackground, inBackground
Methods inherited from interface org.apache.curator.framework.api.Compressible
compressed
Methods inherited from interface org.apache.curator.framework.api.CreateBuilderMain
creatingParentContainersIfNeeded, creatingParentsIfNeeded, withProtectedEphemeralSequential, withProtection
Methods inherited from interface org.apache.curator.framework.api.CreateModable
withMode
Methods inherited from interface org.apache.curator.framework.api.Idempotentable
idempotent
Methods inherited from interface org.apache.curator.framework.api.ParentACLable
withACL
Methods inherited from interface org.apache.curator.framework.api.PathAndBytesable
forPath, forPath
Methods inherited from interface org.apache.curator.framework.api.Statable
storingStatIn
-
Method Details
-
withTtl
Specify a TTL when mode isCreateMode.PERSISTENT_WITH_TTL
orCreateMode.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.- Parameters:
ttl
- the ttl- Returns:
- this for chaining
-
orSetData
CreateBuilder2 orSetData()If the ZNode already exists, Curator will instead call setData() -
orSetData
If the ZNode already exists, Curator will instead call setData()- Parameters:
version
- the version to use forCuratorFramework.setData()
-