Class ChannelContext
- java.lang.Object
-
- com.couchbase.client.core.io.netty.kv.ChannelContext
-
public class ChannelContext extends Object
Holds context to encode KV operations based on what got negotiated in the channel.- Since:
- 2.0.0
-
-
Constructor Summary
Constructors Constructor Description ChannelContext(CompressionConfig compression, boolean collections, boolean mutationTokens, String bucket, boolean syncReplication, boolean altRequest, CollectionMap collectionMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
alternateRequestEnabled()
String
bucket()
The name of the bucket.CollectionMap
collectionMap()
boolean
collectionsEnabled()
CompressionConfig
compressionConfig()
boolean
compressionEnabled()
boolean
mutationTokensEnabled()
boolean
syncReplicationEnabled()
-
-
-
Constructor Detail
-
ChannelContext
public ChannelContext(CompressionConfig compression, boolean collections, boolean mutationTokens, String bucket, boolean syncReplication, boolean altRequest, CollectionMap collectionMap)
-
-
Method Detail
-
collectionsEnabled
public boolean collectionsEnabled()
-
compressionEnabled
public boolean compressionEnabled()
-
compressionConfig
public CompressionConfig compressionConfig()
-
mutationTokensEnabled
public boolean mutationTokensEnabled()
-
syncReplicationEnabled
public boolean syncReplicationEnabled()
-
alternateRequestEnabled
public boolean alternateRequestEnabled()
-
collectionMap
public CollectionMap collectionMap()
-
bucket
public String bucket()
The name of the bucket.
-
-