Uses of Class
com.couchbase.client.core.msg.RequestContext
-
-
Uses of RequestContext in com.couchbase.client.core.cnc
Methods in com.couchbase.client.core.cnc that return RequestContext Modifier and Type Method Description RequestContext
InternalSpan. requestContext()
Returns the request context so it can be accessed once set, usually by the tracer implementation.Methods in com.couchbase.client.core.cnc with parameters of type RequestContext Modifier and Type Method Description void
InternalSpan. requestContext(RequestContext ctx)
Called by the system once the request is created and gives the span a chance to look into request specific information. -
Uses of RequestContext in com.couchbase.client.core.cnc.events.request
Constructors in com.couchbase.client.core.cnc.events.request with parameters of type RequestContext Constructor Description IndividualReplicaGetFailedEvent(RequestContext context)
PreparedStatementRetriedEvent(Duration duration, RequestContext context, RetryReason retryReason, Throwable cause)
RequestNotRetriedEvent(Event.Severity severity, Class<? extends Request> clazz, RequestContext context, RetryReason reason, Throwable throwable)
RequestRetryScheduledEvent(Duration duration, RequestContext context, Class<?> request, RetryReason reason)
-
Uses of RequestContext in com.couchbase.client.core.cnc.tracing
Methods in com.couchbase.client.core.cnc.tracing that return RequestContext Modifier and Type Method Description RequestContext
NoopInternalSpan. requestContext()
RequestContext
ThresholdInternalSpan. requestContext()
Methods in com.couchbase.client.core.cnc.tracing with parameters of type RequestContext Modifier and Type Method Description void
NoopInternalSpan. requestContext(RequestContext ctx)
void
ThresholdInternalSpan. requestContext(RequestContext ctx)
-
Uses of RequestContext in com.couchbase.client.core.error.context
Methods in com.couchbase.client.core.error.context that return RequestContext Modifier and Type Method Description RequestContext
AnalyticsErrorContext. requestContext()
RequestContext
CancellationErrorContext. requestContext()
Returns the underlying request context for debug reasons.RequestContext
QueryErrorContext. requestContext()
RequestContext
SearchErrorContext. requestContext()
RequestContext
ViewErrorContext. requestContext()
Constructors in com.couchbase.client.core.error.context with parameters of type RequestContext Constructor Description AnalyticsErrorContext(RequestContext requestContext, List<ErrorCodeAndMessage> errors)
CancellationErrorContext(RequestContext requestContext)
QueryErrorContext(RequestContext requestContext, List<ErrorCodeAndMessage> errors)
SearchErrorContext(ResponseStatus responseStatus, RequestContext requestContext, int httpStatus)
ViewErrorContext(ResponseStatus responseStatus, RequestContext requestContext, ViewError viewError, int httpStatus)
-
Uses of RequestContext in com.couchbase.client.core.io.netty.chunk
Methods in com.couchbase.client.core.io.netty.chunk that return RequestContext Modifier and Type Method Description protected RequestContext
BaseChunkResponseParser. requestContext()
Methods in com.couchbase.client.core.io.netty.chunk with parameters of type RequestContext Modifier and Type Method Description void
BaseChunkResponseParser. updateRequestContext(RequestContext requestContext)
void
ChunkResponseParser. updateRequestContext(RequestContext requestContext)
Sets the request context for the current request in the parser, can be used for error handling. -
Uses of RequestContext in com.couchbase.client.core.msg
Methods in com.couchbase.client.core.msg that return RequestContext Modifier and Type Method Description RequestContext
RequestContext. cancel()
Allows to cancel the attachedRequest
from anywhere in the code.RequestContext
RequestContext. clientContext(Map<String,Object> clientContext)
Allows to set a custom payload for this request.RequestContext
BaseRequest. context()
RequestContext
Request. context()
If attached, returns the context for this request.RequestContext
RequestContext. dispatchLatency(long dispatchLatency)
Allows to set the dispatch duration of the request.RequestContext
RequestContext. encodeLatency(long encodeLatency)
RequestContext
RequestContext. incrementRetryAttempts(Duration lastRetryDuration, RetryReason reason)
RequestContext
RequestContext. lastChannelId(String lastChannelId)
RequestContext
RequestContext. lastDispatchedFrom(HostAndPort lastDispatchedFrom)
RequestContext
RequestContext. lastDispatchedTo(HostAndPort lastDispatchedTo)
RequestContext
RequestContext. logicallyComplete()
Signals that this request is completed fully, including streaming sections or logical sub-requests also being completed (i.e.RequestContext
RequestContext. serverLatency(long serverLatency)
-