Class BucketConfigRequest
java.lang.Object
com.couchbase.client.core.msg.BaseRequest<BucketConfigResponse>
com.couchbase.client.core.msg.manager.BaseManagerRequest<BucketConfigResponse>
com.couchbase.client.core.msg.manager.BucketConfigRequest
- All Implemented Interfaces:
Encodable<com.couchbase.client.core.deps.io.netty.handler.codec.http.FullHttpRequest>,ManagerRequest<BucketConfigResponse>,Request<BucketConfigResponse>,TargetedRequest
public class BucketConfigRequest
extends BaseManagerRequest<BucketConfigResponse>
implements TargetedRequest
-
Constructor Summary
ConstructorsConstructorDescriptionBucketConfigRequest(Duration timeout, CoreContext ctx, RetryStrategy retryStrategy, String bucketName, Authenticator authenticator, NodeIdentifier target) -
Method Summary
Modifier and TypeMethodDescriptiondecode(com.couchbase.client.core.deps.io.netty.handler.codec.http.HttpResponse response, byte[] content) Decodes a manager response into its response entity.com.couchbase.client.core.deps.io.netty.handler.codec.http.FullHttpRequestencode()booleanReturns if the given request is idempotent or not.Returns contextual information for each individual service.target()Returns the node that should service this request, or null to let the service locator decide.Methods inherited from class com.couchbase.client.core.msg.manager.BaseManagerRequest
serviceTypeMethods inherited from class com.couchbase.client.core.msg.BaseRequest
absoluteTimeout, cancel, cancellationReason, cancelled, completed, context, createdAt, fail, failed, id, requestSpan, response, retryStrategy, succeed, succeeded, timeout, timeoutElapsed, timeoutRegistrationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, serviceTracingId, succeed, succeeded, timeout, timeoutElapsed, timeoutRegistration
-
Constructor Details
-
BucketConfigRequest
public BucketConfigRequest(Duration timeout, CoreContext ctx, RetryStrategy retryStrategy, String bucketName, Authenticator authenticator, NodeIdentifier target)
-
-
Method Details
-
encode
public com.couchbase.client.core.deps.io.netty.handler.codec.http.FullHttpRequest encode() -
target
Description copied from interface:RequestReturns the node that should service this request, or null to let the service locator decide.- Specified by:
targetin interfaceRequest<BucketConfigResponse>- Returns:
- (nullable)
-
decode
public BucketConfigResponse decode(com.couchbase.client.core.deps.io.netty.handler.codec.http.HttpResponse response, byte[] content) Description copied from interface:ManagerRequestDecodes a manager response into its response entity.- Specified by:
decodein interfaceManagerRequest<BucketConfigResponse>- Parameters:
response- the http header of the response.content- the actual content of the response.- Returns:
- the decoded value.
-
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<BucketConfigResponse>- Returns:
- true if idempotent.
-
serviceContext
Description copied from interface:RequestReturns contextual information for each individual service.- Specified by:
serviceContextin interfaceRequest<BucketConfigResponse>- Overrides:
serviceContextin classBaseRequest<BucketConfigResponse>- Returns:
- the service context.
-