Class KeyValueChannelContext
- java.lang.Object
-
- com.couchbase.client.core.io.netty.kv.KeyValueChannelContext
-
public class KeyValueChannelContext 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 KeyValueChannelContext(CompressionConfig compression, boolean collections, boolean mutationTokens, Optional<String> bucket, boolean syncReplication, boolean vattrEnabled, boolean altRequest, CollectionMap collectionMap, com.couchbase.client.core.deps.io.netty.channel.ChannelId channelId, boolean createAsDeleted, boolean preserveTtl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
alternateRequestEnabled()
Optional<String>
bucket()
The name of the bucket.com.couchbase.client.core.deps.io.netty.channel.ChannelId
channelId()
CollectionMap
collectionMap()
boolean
collectionsEnabled()
CompressionConfig
compressionConfig()
boolean
compressionEnabled()
boolean
createAsDeleted()
boolean
mutationTokensEnabled()
boolean
preserveTtl()
boolean
syncReplicationEnabled()
boolean
vattrEnabled()
-
-
-
Constructor Detail
-
KeyValueChannelContext
public KeyValueChannelContext(CompressionConfig compression, boolean collections, boolean mutationTokens, Optional<String> bucket, boolean syncReplication, boolean vattrEnabled, boolean altRequest, CollectionMap collectionMap, com.couchbase.client.core.deps.io.netty.channel.ChannelId channelId, boolean createAsDeleted, boolean preserveTtl)
-
-
Method Detail
-
collectionsEnabled
public boolean collectionsEnabled()
-
compressionEnabled
public boolean compressionEnabled()
-
compressionConfig
public CompressionConfig compressionConfig()
-
mutationTokensEnabled
public boolean mutationTokensEnabled()
-
syncReplicationEnabled
public boolean syncReplicationEnabled()
-
vattrEnabled
public boolean vattrEnabled()
-
alternateRequestEnabled
public boolean alternateRequestEnabled()
-
collectionMap
public CollectionMap collectionMap()
-
channelId
public com.couchbase.client.core.deps.io.netty.channel.ChannelId channelId()
-
createAsDeleted
public boolean createAsDeleted()
-
preserveTtl
public boolean preserveTtl()
-
-