public enum CompressionMode extends Enum<CompressionMode>
| Enum Constant and Description |
|---|
DISABLED
Couchbase Server will never send compressed values.
|
ENABLED
Default mode.
|
FORCED
Couchbase Server will always send compressed values, regardless
of how the values are stored on the server, unless the compressed
form is larger than the uncompressed form.
|
| Modifier and Type | Method and Description |
|---|---|
abstract CompressionMode |
effectiveMode(Version serverVersion) |
abstract Map<String,String> |
getDcpControls(Version serverVersion) |
Set<HelloFeature> |
getHelloFeatures(Version serverVersion) |
static CompressionMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CompressionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompressionMode DISABLED
public static final CompressionMode FORCED
When connecting to a server older than version 5.5, this mode will be downgraded to DISABLED.
public static final CompressionMode ENABLED
Couchbase Server may send compressed values at its discretion. Values stored in compressed form will be sent compressed. Values stored in uncompressed form will be sent uncompressed.
When connecting to a server older than version 5.5, this mode will be downgraded to DISABLED.
public static CompressionMode[] values()
for (CompressionMode c : CompressionMode.values()) System.out.println(c);
public static CompressionMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic abstract CompressionMode effectiveMode(Version serverVersion)
public abstract Map<String,String> getDcpControls(Version serverVersion)
public Set<HelloFeature> getHelloFeatures(Version serverVersion)
Copyright © 2021 Couchbase, Inc.. All rights reserved.