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) -
Method Summary
Modifier and Type Method Description booleanalternateRequestEnabled()Optional<String>bucket()The name of the bucket.com.couchbase.client.core.deps.io.netty.channel.ChannelIdchannelId()CollectionMapcollectionMap()booleancollectionsEnabled()CompressionConfigcompressionConfig()booleancompressionEnabled()booleancreateAsDeleted()booleanmutationTokensEnabled()booleansyncReplicationEnabled()booleanvattrEnabled()
-
Constructor Details
-
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)
-
-
Method Details
-
collectionsEnabled
public boolean collectionsEnabled() -
compressionEnabled
public boolean compressionEnabled() -
compressionConfig
-
mutationTokensEnabled
public boolean mutationTokensEnabled() -
syncReplicationEnabled
public boolean syncReplicationEnabled() -
vattrEnabled
public boolean vattrEnabled() -
alternateRequestEnabled
public boolean alternateRequestEnabled() -
collectionMap
-
channelId
public com.couchbase.client.core.deps.io.netty.channel.ChannelId channelId() -
createAsDeleted
public boolean createAsDeleted() -
bucket
The name of the bucket.
-