Class BaseManagerRequest<R extends Response>

java.lang.Object
com.couchbase.client.core.msg.BaseRequest<R>
com.couchbase.client.core.msg.manager.BaseManagerRequest<R>
All Implemented Interfaces:
Encodable<com.couchbase.client.core.deps.io.netty.handler.codec.http.FullHttpRequest>, ManagerRequest<R>, Request<R>
Direct Known Subclasses:
BucketConfigRequest, BucketConfigStreamingRequest, GenericManagerRequest

public abstract class BaseManagerRequest<R extends Response> extends BaseRequest<R> implements ManagerRequest<R>
Base class for the manager requests, mainly to define the service type in a uniform way.
  • Method Details

    • serviceType

      public ServiceType serviceType()
      Description copied from interface: Request
      The service type of this request.

      Can be null if this is a 'virtual service' (e.g. transactions), which don't map 1:1 to a particular cluster service, but need to integrate into various codepaths that are built around ServiceType such as ThresholdLoggingTracer. Virtual requests must not be sent into core at present, as there is limited support for them.

      Specified by:
      serviceType in interface Request<R extends Response>
      Returns:
      the service type for this request.