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
Modifier and TypeMethodDescriptionAsyncPathAndBytesable<AsyncStage<org.apache.zookeeper.data.Stat>> 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>> Cause the data to be uncompressed, even if theCuratorFrameworkhas compressionEnabledAsyncPathAndBytesable<AsyncStage<org.apache.zookeeper.data.Stat>> uncompressedWithVersion(int version) Cause the data to be uncompressed, even if theCuratorFrameworkhas compressionEnabled.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
forPathMethods inherited from interface org.apache.curator.x.async.api.AsyncPathAndBytesable
forPath
-
Method Details
-
compressed
AsyncPathAndBytesable<AsyncStage<org.apache.zookeeper.data.Stat>> compressed()Cause the data to be compressed using the configured compression provider- Returns:
- this
-
uncompressed
AsyncPathAndBytesable<AsyncStage<org.apache.zookeeper.data.Stat>> uncompressed()Cause the data to be uncompressed, even if theCuratorFrameworkhas compressionEnabled- 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
-
uncompressedWithVersion
AsyncPathAndBytesable<AsyncStage<org.apache.zookeeper.data.Stat>> uncompressedWithVersion(int version) Cause the data to be uncompressed, even if theCuratorFrameworkhas compressionEnabled. Only sets if the version matches. By default -1 is used which matches all versions.- Parameters:
version- version- Returns:
- this
-
withVersion
Only sets if the version matches. By default -1 is used which matches all versions.- Parameters:
version- version- Returns:
- this
-