Class GenericSearchRequest

java.lang.Object
com.couchbase.client.core.msg.BaseRequest<GenericSearchResponse>
com.couchbase.client.core.msg.search.GenericSearchRequest
All Implemented Interfaces:
Encodable<com.couchbase.client.core.deps.io.netty.handler.codec.http.FullHttpRequest>, NonChunkedHttpRequest<GenericSearchResponse>, Request<GenericSearchResponse>

public class GenericSearchRequest
extends BaseRequest<GenericSearchResponse>
implements NonChunkedHttpRequest<GenericSearchResponse>
  • Constructor Details

    • GenericSearchRequest

      public GenericSearchRequest​(Duration timeout, CoreContext ctx, RetryStrategy retryStrategy, Supplier<com.couchbase.client.core.deps.io.netty.handler.codec.http.FullHttpRequest> requestSupplier, boolean idempotent)
  • Method Details

    • decode

      public GenericSearchResponse decode​(com.couchbase.client.core.deps.io.netty.handler.codec.http.FullHttpResponse response, HttpChannelContext context)
      Specified by:
      decode in interface NonChunkedHttpRequest<GenericSearchResponse>
    • 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>
    • serviceType

      public ServiceType serviceType()
      Description copied from interface: Request
      The service type of this request.
      Specified by:
      serviceType in interface Request<GenericSearchResponse>
      Returns:
      the service type for this request.
    • 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<GenericSearchResponse>
      Returns:
      true if idempotent.