Class GenericViewRequest
- java.lang.Object
-
- com.couchbase.client.core.msg.BaseRequest<GenericViewResponse>
-
- com.couchbase.client.core.msg.view.GenericViewRequest
-
- All Implemented Interfaces:
Encodable<com.couchbase.client.core.deps.io.netty.handler.codec.http.FullHttpRequest>,NonChunkedHttpRequest<GenericViewResponse>,Request<GenericViewResponse>,ScopedRequest
public class GenericViewRequest extends BaseRequest<GenericViewResponse> implements NonChunkedHttpRequest<GenericViewResponse>, ScopedRequest
-
-
Constructor Summary
Constructors Constructor Description 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringbucket()GenericViewResponsedecode(com.couchbase.client.core.deps.io.netty.handler.codec.http.FullHttpResponse response, HttpChannelContext context)com.couchbase.client.core.deps.io.netty.handler.codec.http.FullHttpRequestencode()booleanidempotent()Returns if the given request is idempotent or not.ServiceTypeserviceType()The service type of this request.-
Methods inherited from class com.couchbase.client.core.msg.BaseRequest
absoluteTimeout, cancel, cancellationReason, cancelled, completed, context, createdAt, fail, failed, id, internalSpan, response, retryStrategy, serviceContext, succeed, succeeded, timeout, timeoutElapsed
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.couchbase.client.core.msg.Request
absoluteTimeout, cancel, cancellationReason, cancelled, completed, context, createdAt, fail, failed, id, internalSpan, operationId, response, retryStrategy, serviceContext, succeed, succeeded, timeout, timeoutElapsed
-
-
-
-
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
-
decode
public GenericViewResponse decode(com.couchbase.client.core.deps.io.netty.handler.codec.http.FullHttpResponse response, HttpChannelContext context)
- Specified by:
decodein interfaceNonChunkedHttpRequest<GenericViewResponse>
-
encode
public com.couchbase.client.core.deps.io.netty.handler.codec.http.FullHttpRequest encode()
-
serviceType
public ServiceType serviceType()
Description copied from interface:RequestThe service type of this request.- Specified by:
serviceTypein interfaceRequest<GenericViewResponse>- Returns:
- the service type for this request.
-
bucket
public String bucket()
- Specified by:
bucketin interfaceScopedRequest
-
idempotent
public boolean idempotent()
Description copied from interface:RequestReturns 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:
idempotentin interfaceRequest<GenericViewResponse>- Returns:
- true if idempotent.
-
-