Class 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 Details

  • Method Details

    • 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>
    • target

      public NodeIdentifier target()
      Description copied from interface: Request
      Returns the node that should service this request, or null to let the service locator decide.
      Specified by:
      target in interface Request<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: ManagerRequest
      Decodes a manager response into its response entity.
      Specified by:
      decode in interface ManagerRequest<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: 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<BucketConfigResponse>
      Returns:
      true if idempotent.
    • serviceContext

      public Map<String,Object> serviceContext()
      Description copied from interface: Request
      Returns contextual information for each individual service.
      Specified by:
      serviceContext in interface Request<BucketConfigResponse>
      Overrides:
      serviceContext in class BaseRequest<BucketConfigResponse>
      Returns:
      the service context.