public class CompressionConfig extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CompressionConfig.Builder
This builder allows to customize the
CompressionConfig. |
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_ENABLED |
static double |
DEFAULT_MIN_RATIO |
static int |
DEFAULT_MIN_SIZE |
| Modifier and Type | Method and Description |
|---|---|
static CompressionConfig.Builder |
builder()
Deprecated.
Instead of creating a new builder, please use
CoreEnvironment.Builder.compressionConfig(Consumer)
and configure the builder passed to the consumer.
Note: CoreEnvironment is a base class; you'll
probably call that method via a subclass named
ClusterEnvironment. |
static CompressionConfig |
create()
Deprecated.
Instead, please use
CoreEnvironment.Builder.compressionConfig(Consumer)
and configure the builder passed to the consumer.
Note: CoreEnvironment is a base class; you'll
probably call that method via a subclass named
ClusterEnvironment. |
static CompressionConfig.Builder |
enable(boolean enabled)
Deprecated.
This method creates a new builder. Please see the deprecation notice on
builder(). |
boolean |
enabled()
True if compression should be enabled, false otherwise.
|
double |
minRatio()
Returns the minimum effective ratio to send when compressed.
|
static CompressionConfig.Builder |
minRatio(double minRatio)
Deprecated.
This method creates a new builder. Please see the deprecation notice on
builder(). |
int |
minSize()
Returns the minimum configured compression size.
|
static CompressionConfig.Builder |
minSize(int minSize)
Deprecated.
This method creates a new builder. Please see the deprecation notice on
builder(). |
public static final boolean DEFAULT_ENABLED
public static final int DEFAULT_MIN_SIZE
public static final double DEFAULT_MIN_RATIO
@Deprecated public static CompressionConfig create()
CoreEnvironment.Builder.compressionConfig(Consumer)
and configure the builder passed to the consumer.
Note: CoreEnvironment is a base class; you'll
probably call that method via a subclass named
ClusterEnvironment.CompressionConfig with default arguments.CompressionConfig.@Deprecated public static CompressionConfig.Builder builder()
CoreEnvironment.Builder.compressionConfig(Consumer)
and configure the builder passed to the consumer.
Note: CoreEnvironment is a base class; you'll
probably call that method via a subclass named
ClusterEnvironment.CompressionConfig.CompressionConfig.@Deprecated public static CompressionConfig.Builder enable(boolean enabled)
builder().enabled - true to enable, false otherwise.CompressionConfig.Builder for chaining purposes.@Deprecated public static CompressionConfig.Builder minSize(int minSize)
builder().The default is 32 bytes.
minSize - minimum size in bytes.CompressionConfig.Builder for chaining purposes.@Deprecated public static CompressionConfig.Builder minRatio(double minRatio)
builder().The default is 0.83.
minRatio - the minimum ratio.CompressionConfig.Builder for chaining purposes.public int minSize()
public double minRatio()
public boolean enabled()
Copyright © 2024 Couchbase, Inc.. All rights reserved.