Class 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 Detail

      • KeyValueChannelContext

        public KeyValueChannelContext​(CompressionConfig compression,
                                      boolean collections,
                                      boolean mutationTokens,
                                      Optional<String> bucket,
                                      boolean syncReplication,
                                      boolean altRequest,
                                      CollectionMap collectionMap,
                                      com.couchbase.client.core.deps.io.netty.channel.ChannelId channelId)
    • Method Detail

      • collectionsEnabled

        public boolean collectionsEnabled()
      • compressionEnabled

        public boolean compressionEnabled()
      • mutationTokensEnabled

        public boolean mutationTokensEnabled()
      • syncReplicationEnabled

        public boolean syncReplicationEnabled()
      • alternateRequestEnabled

        public boolean alternateRequestEnabled()
      • channelId

        public com.couchbase.client.core.deps.io.netty.channel.ChannelId channelId()