public class CoreTransactionRequest extends BaseRequest<CoreTransactionResponse>
| Constructor and Description |
|---|
CoreTransactionRequest(Duration timeout,
CoreContext ctx,
RequestSpan span) |
| Modifier and Type | Method and 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.
|
absoluteTimeout, cancel, cancellationReason, cancelled, completed, context, createdAt, fail, failed, id, requestSpan, response, retryStrategy, serviceContext, succeed, succeeded, timeout, timeoutElapsed, timeoutRegistrationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbucket, cancel, idempotent, operationId, targetpublic CoreTransactionRequest(Duration timeout, CoreContext ctx, RequestSpan span)
public ServiceType serviceType()
RequestCan 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.
public String name()
RequestThe 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.
Copyright © 2024 Couchbase, Inc.. All rights reserved.