public interface CreateBuilder extends CreateBuilderMain, Idempotentable<CreateBuilder2>
Modifier and Type | Method and 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 . |
creatingParentContainersIfNeeded, creatingParentsIfNeeded, withProtectedEphemeralSequential, withProtection
withACL
inBackground, inBackground, inBackground, inBackground, inBackground, inBackground
forPath, forPath
withMode
compressed
storingStatIn
idempotent
CreateBuilderMain 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–2023 The Apache Software Foundation. All rights reserved.