Package com.couchbase.client.core.env
Class CompressionConfig.Builder
java.lang.Object
com.couchbase.client.core.env.CompressionConfig.Builder
- Enclosing class:
- CompressionConfig
This builder allows to customize the
CompressionConfig
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
enable
(boolean enabled) If set to false, disabled compression.minRatio
(double minRatio) The minimum ratio after which a compressed doc is sent compressed versus the uncompressed version is sent for efficiency.minSize
(int minSize) The minimum size after which compression is performed.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
-
enable
If set to false, disabled compression.- Parameters:
enabled
- true to enable, false otherwise.- Returns:
- this
CompressionConfig.Builder
for chaining purposes.
-
minSize
The minimum size after which compression is performed.- Parameters:
minSize
- minimum size in bytes.- Returns:
- this
CompressionConfig.Builder
for chaining purposes.
-
minRatio
The minimum ratio after which a compressed doc is sent compressed versus the uncompressed version is sent for efficiency.- Parameters:
minRatio
- the minimum ratio.- Returns:
- this
CompressionConfig.Builder
for chaining purposes.
-