Class BaseKeyValueRequest<R extends Response>

    • Method Detail

      • partition

        public void partition​(short partition)
        Description copied from interface: KeyValueRequest
        Allows to set the partition used for this request.
        Specified by:
        partition in interface KeyValueRequest<R extends Response>
        Parameters:
        partition - the partition to set.
      • encodedKeyWithCollection

        protected com.couchbase.client.core.deps.io.netty.buffer.ByteBuf encodedKeyWithCollection​(com.couchbase.client.core.deps.io.netty.buffer.ByteBufAllocator alloc,
                                                                                                  ChannelContext ctx)
        This method with return an encoded key with or without the collection prefix, depending on the context provided.
        Parameters:
        alloc - the buffer allocator to use.
        ctx - the channel context.
        Returns:
        the encoded ID, maybe with the collection prefix in place.
      • serviceType

        public ServiceType serviceType()
        Description copied from interface: Request
        The service type of this request.
        Specified by:
        serviceType in interface Request<R extends Response>
        Returns:
        the service type for this request.