Package org.apache.curator.framework.api
Interface CreateBuilder2
-
- All Superinterfaces:
ACLable<BackgroundPathAndBytesable<java.lang.String>>,ACLBackgroundPathAndBytesable<java.lang.String>,ACLCreateModeBackgroundPathAndBytesable<java.lang.String>,Backgroundable<ErrorListenerPathAndBytesable<java.lang.String>>,BackgroundPathAndBytesable<java.lang.String>,Compressible<CreateBackgroundModeStatACLable>,CreateBuilderMain,CreateModable<ACLBackgroundPathAndBytesable<java.lang.String>>,ParentACLable<BackgroundPathAndBytesable<java.lang.String>>,PathAndBytesable<java.lang.String>,Statable<CreateProtectACLCreateModePathAndBytesable<java.lang.String>>
- All Known Implementing Classes:
CreateBuilderImpl
public interface CreateBuilder2 extends CreateBuilderMain
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateBuilderMainwithTtl(long ttl)Specify a TTL when mode isCreateMode.PERSISTENT_WITH_TTLorCreateMode.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.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 Detail
-
withTtl
CreateBuilderMain withTtl(long ttl)
Specify a TTL when mode isCreateMode.PERSISTENT_WITH_TTLorCreateMode.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
-
-