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 Summary
Constructors Constructor Description CoreTransactionRequest(Duration timeout, CoreContext ctx, RequestSpan span)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
name()
The unique name of the request, usually related to the type but not necessarily.ServiceType
serviceType()
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 Detail
-
CoreTransactionRequest
public CoreTransactionRequest(Duration timeout, CoreContext ctx, RequestSpan span)
-
-
Method Detail
-
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.
- Returns:
- the service type for this request.
-
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.
-
-