Class CoreTransactionRequest

java.lang.Object
com.couchbase.client.core.msg.BaseRequest<CoreTransactionResponse>
com.couchbase.client.core.transaction.components.CoreTransactionRequest
All Implemented Interfaces:
Request<CoreTransactionResponse>

public class CoreTransactionRequest extends BaseRequest<CoreTransactionResponse>
This doesn't correspond to an individual server request. It just makes it easier to slot into some existing components, such as the ThresholdLoggingTracer, if we model a transaction as a BaseRequest.
  • Constructor Details

  • Method Details

    • serviceType

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

      Callers that expect virtual services should use Request.serviceTracingId() instead.

    • serviceTracingId

      public String serviceTracingId()
      Description copied from interface: Request
      Returns the tracing ID of the service associated with this request, or TracingIdentifiers.SERVICE_UNKNOWN if the ID could not be determined.

      Distinct from Request.serviceType(), because virtual services (like transactions) have a tracing ID but no service type.

      Virtual service requests should override this method to return the tracing ID of the virtual service.

    • name

      public String name()
      Description copied from interface: Request
      The unique name of the request, usually related to the type but not necessarily.

      The default implementation is derived from the class name (i.e. FooRequest returns foo), but if that does not match up it should be overridden in the actual class.

      Returns:
      the name of the request type.