Interface CreateBuilder2

All Superinterfaces:
ACLable<BackgroundPathAndBytesable<String>>, ACLBackgroundPathAndBytesable<String>, ACLCreateModeBackgroundPathAndBytesable<String>, Backgroundable<ErrorListenerPathAndBytesable<String>>, BackgroundPathAndBytesable<String>, Compressible<CreateBackgroundModeStatACLable>, CreateBuilderMain, CreateModable<ACLBackgroundPathAndBytesable<String>>, ParentACLable<BackgroundPathAndBytesable<String>>, PathAndBytesable<String>, Statable<CreateProtectACLCreateModePathAndBytesable<String>>
All Known Implementing Classes:
CreateBuilderImpl

public interface CreateBuilder2 extends CreateBuilderMain
  • Method Details

    • withTtl

      CreateBuilderMain withTtl(long ttl)
      Specify a TTL when mode is 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.
      Parameters:
      ttl - the ttl
      Returns:
      this for chaining