Interface AsyncSetDataBuilder

All Superinterfaces:
AsyncPathable<AsyncStage<org.apache.zookeeper.data.Stat>>, AsyncPathAndBytesable<AsyncStage<org.apache.zookeeper.data.Stat>>

public interface AsyncSetDataBuilder extends AsyncPathAndBytesable<AsyncStage<org.apache.zookeeper.data.Stat>>
Builder for setting ZNode data
  • Method Details

    • compressed

      AsyncPathAndBytesable<AsyncStage<org.apache.zookeeper.data.Stat>> compressed()
      Cause the data to be compressed using the configured compression provider
      Returns:
      this
    • compressedWithVersion

      AsyncPathAndBytesable<AsyncStage<org.apache.zookeeper.data.Stat>> compressedWithVersion(int version)
      Cause the data to be compressed using the configured compression provider. Only sets if the version matches. By default -1 is used which matches all versions.
      Parameters:
      version - version
      Returns:
      this
    • withVersion

      AsyncPathAndBytesable<AsyncStage<org.apache.zookeeper.data.Stat>> withVersion(int version)
      Only sets if the version matches. By default -1 is used which matches all versions.
      Parameters:
      version - version
      Returns:
      this