Class GenericManagerRequest
java.lang.Object
com.couchbase.client.core.msg.BaseRequest<GenericManagerResponse>
com.couchbase.client.core.msg.manager.BaseManagerRequest<GenericManagerResponse>
com.couchbase.client.core.msg.manager.GenericManagerRequest
- All Implemented Interfaces:
Encodable<com.couchbase.client.core.deps.io.netty.handler.codec.http.FullHttpRequest>
,ManagerRequest<GenericManagerResponse>
,Request<GenericManagerResponse>
Deprecated.
-
Constructor Summary
ConstructorDescriptionGenericManagerRequest
(CoreContext ctx, Supplier<com.couchbase.client.core.deps.io.netty.handler.codec.http.FullHttpRequest> requestSupplier, boolean idempotent, RequestSpan span) Deprecated.GenericManagerRequest
(Duration timeout, CoreContext ctx, RetryStrategy retryStrategy, Supplier<com.couchbase.client.core.deps.io.netty.handler.codec.http.FullHttpRequest> requestSupplier, boolean idempotent, RequestSpan span) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptiondecode
(com.couchbase.client.core.deps.io.netty.handler.codec.http.HttpResponse response, byte[] content) Deprecated.Decodes a manager response into its response entity.com.couchbase.client.core.deps.io.netty.handler.codec.http.FullHttpRequest
encode()
Deprecated.boolean
Deprecated.Returns if the given request is idempotent or not.Methods inherited from class com.couchbase.client.core.msg.manager.BaseManagerRequest
serviceType
Methods inherited from class com.couchbase.client.core.msg.BaseRequest
absoluteTimeout, cancel, cancellationReason, cancelled, completed, context, createdAt, fail, failed, id, requestSpan, response, retryStrategy, serviceContext, succeed, succeeded, timeout, timeoutElapsed, timeoutRegistration
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, bucket, cancel, cancel, cancellationReason, cancelled, completed, context, createdAt, fail, failed, id, name, operationId, requestSpan, response, retryStrategy, serviceContext, succeed, succeeded, target, timeout, timeoutElapsed, timeoutRegistration
-
Constructor Details
-
GenericManagerRequest
public GenericManagerRequest(CoreContext ctx, Supplier<com.couchbase.client.core.deps.io.netty.handler.codec.http.FullHttpRequest> requestSupplier, boolean idempotent, RequestSpan span) Deprecated. -
GenericManagerRequest
public GenericManagerRequest(Duration timeout, CoreContext ctx, RetryStrategy retryStrategy, Supplier<com.couchbase.client.core.deps.io.netty.handler.codec.http.FullHttpRequest> requestSupplier, boolean idempotent, RequestSpan span) Deprecated.
-
-
Method Details
-
decode
public GenericManagerResponse decode(com.couchbase.client.core.deps.io.netty.handler.codec.http.HttpResponse response, byte[] content) Deprecated.Description copied from interface:ManagerRequest
Decodes a manager response into its response entity.- Parameters:
response
- the http header of the response.content
- the actual content of the response.- Returns:
- the decoded value.
-
encode
public com.couchbase.client.core.deps.io.netty.handler.codec.http.FullHttpRequest encode()Deprecated. -
idempotent
public boolean idempotent()Deprecated.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!
- Returns:
- true if idempotent.
-
CoreHttpClient
. CAVEAT: the core HTTP client throws an exception if the response's HTTP status code indicates failure. This is in contrast to GenericManagerRequest, whose response completes "successfully" regardless of HTTP status code.