Package org.apache.curator.x.async.api
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AsyncPathAndBytesable<AsyncStage<org.apache.zookeeper.data.Stat>>compressed()Cause the data to be compressed using the configured compression providerAsyncPathAndBytesable<AsyncStage<org.apache.zookeeper.data.Stat>>compressedWithVersion(int version)Cause the data to be compressed using the configured compression provider.AsyncPathAndBytesable<AsyncStage<org.apache.zookeeper.data.Stat>>withVersion(int version)Only sets if the version matches.-
Methods inherited from interface org.apache.curator.x.async.api.AsyncPathable
forPath
-
Methods inherited from interface org.apache.curator.x.async.api.AsyncPathAndBytesable
forPath
-
-
-
-
Method Detail
-
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
-
-