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_UNKNOWN
if 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, timeoutRegistration
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.couchbase.client.core.msg.Request
bucket, cancel, idempotent, operationId, target
-
Constructor Details
-
CoreTransactionRequest
-
-
Method Details
-
serviceType
Description copied from interface:Request
The service type of this request.Callers that expect virtual services should use
Request.serviceTracingId()
instead. -
serviceTracingId
Description copied from interface:Request
Returns the tracing ID of the service associated with this request, orTracingIdentifiers.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
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.
-