Class CoreTransactionRequest
java.lang.Object
com.couchbase.client.core.msg.BaseRequest<CoreTransactionResponse>
com.couchbase.client.core.transaction.components.CoreTransactionRequest
- All Implemented Interfaces:
Request<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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionname()The unique name of the request, usually related to the type but not necessarily.Returns the tracing ID of the service associated with this request, orTracingIdentifiers.SERVICE_UNKNOWNif the ID could not be determined.The service type of this request.Methods inherited from class com.couchbase.client.core.msg.BaseRequest
absoluteTimeout, cancel, cancellationReason, cancelled, completed, context, createdAt, fail, failed, id, requestSpan, response, retryStrategy, serviceContext, 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
bucket, cancel, idempotent, operationId, target
-
Constructor Details
-
CoreTransactionRequest
-
-
Method Details
-
serviceType
Description copied from interface:RequestThe service type of this request.Callers that expect virtual services should use
Request.serviceTracingId()instead. -
serviceTracingId
Description copied from interface:RequestReturns the tracing ID of the service associated with this request, orTracingIdentifiers.SERVICE_UNKNOWNif 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
Description copied from interface:RequestThe 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.
-