Class BucketConfigRequest

All Implemented Interfaces:
Encodable<>, ManagerRequest<BucketConfigResponse>, Request<BucketConfigResponse>, TargetedRequest

public class BucketConfigRequest extends BaseManagerRequest<BucketConfigResponse> implements TargetedRequest
  • Constructor Details

  • Method Details

    • encode

      public encode()
      Specified by:
      encode in interface Encodable<>
    • 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>
    • decode

      public BucketConfigResponse decode( response, byte[] content)
      Description copied from interface: ManagerRequest
      Decodes a manager response into its response entity.
      Specified by:
      decode in interface ManagerRequest<BucketConfigResponse>
      response - the http header of the response.
      content - the actual content of the response.
      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>
      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>
      serviceContext in class BaseRequest<BucketConfigResponse>
      the service context.