Class GenericViewRequest

    • Constructor Detail

      • GenericViewRequest

        public GenericViewRequest​(Duration timeout,
                                  CoreContext ctx,
                                  RetryStrategy retryStrategy,
                                  Supplier<com.couchbase.client.core.deps.io.netty.handler.codec.http.FullHttpRequest> requestSupplier,
                                  boolean idempotent,
                                  String bucket)
    • 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>
      • 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<GenericViewResponse>
        Returns:
        true if idempotent.