Class QueryRequest

    • Method Detail

      • encode

        public com.couchbase.client.core.deps.io.netty.handler.codec.http.FullHttpRequest encode()
        Specified by:
        encode in interface Encodable<com.couchbase.client.core.deps.io.netty.handler.codec.http.FullHttpRequest>
      • statement

        public String statement()
      • operationId

        public String operationId()
        Description copied from interface: Request
        Returns a potentially non-unique identifier that is useful for tracing output.

        Note: might be null! It depends on the type of operation. It is also different from the unqiue operation ID that increments to provide additional context (i.e in query the context uuid, in kv the opaque value).

        Specified by:
        operationId in interface Request<QueryResponse>
        Returns:
        if present, the operation id. Null otherwise.
      • idempotent

        public boolean idempotent()
        Description copied from interface: Request
        Returns if the given request is idempotent or not.

        By default, this method always returns false for data consistency reasons. Only specific idempotent operations should override this default since it impacts retry handling quite a bit. DO NOT SET THIS TO TRUE ON MUTATING OPERATIONS!

        Specified by:
        idempotent in interface Request<QueryResponse>
        Returns:
        true if idempotent.