Uses of Class
com.couchbase.client.core.msg.RequestContext
Package
Description
-
Uses of RequestContext in com.couchbase.client.core.cnc
Modifier and TypeMethodDescriptionvoid
RequestSpan.requestContext
(RequestContext requestContext) Allows to set a request context to the request span. -
Uses of RequestContext in com.couchbase.client.core.cnc.events.request
ModifierConstructorDescriptionPreparedStatementRetriedEvent
(Duration duration, RequestContext context, RetryReason retryReason, Throwable cause) -
Uses of RequestContext in com.couchbase.client.core.cnc.tracing
Modifier and TypeMethodDescriptionvoid
NoopRequestSpan.requestContext
(RequestContext requestContext) void
ThresholdRequestSpan.requestContext
(RequestContext requestContext) -
Uses of RequestContext in com.couchbase.client.core.endpoint.http
ModifierConstructorDescriptionCoreHttpResponse
(ResponseStatus status, byte[] content, int httpStatus, HttpChannelContext channelContext, RequestContext requestContext) -
Uses of RequestContext in com.couchbase.client.core.error.context
Modifier and TypeMethodDescriptionAnalyticsErrorContext.requestContext()
CancellationErrorContext.requestContext()
Returns the underlying request context (if present) for debug reasons.EventingErrorContext.requestContext()
ManagerErrorContext.requestContext()
QueryErrorContext.requestContext()
SearchErrorContext.requestContext()
ViewErrorContext.requestContext()
ModifierConstructorDescriptionAnalyticsErrorContext
(RequestContext requestContext, List<ErrorCodeAndMessage> errors, int httpStatus) CancellationErrorContext
(RequestContext requestContext) EventingErrorContext
(ResponseStatus responseStatus, RequestContext requestContext, int httpStatus, Map<String, Object> responseProperties) ManagerErrorContext
(ResponseStatus responseStatus, RequestContext requestContext, int httpStatus, String content) QueryErrorContext
(RequestContext requestContext, List<ErrorCodeAndMessage> errors, int httpStatus) SearchErrorContext
(ResponseStatus responseStatus, RequestContext requestContext, int httpStatus, String content) ViewErrorContext
(ResponseStatus responseStatus, RequestContext requestContext, ViewError viewError, int httpStatus) -
Uses of RequestContext in com.couchbase.client.core.io.netty.chunk
Modifier and TypeMethodDescriptionprotected RequestContext
BaseChunkResponseParser.requestContext()
Modifier and TypeMethodDescriptionvoid
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
Modifier and TypeMethodDescriptionRequestContext.cancel()
Allows to cancel the attachedRequest
from anywhere in the code.RequestContext.clientContext
(Map<String, Object> clientContext) Allows to set a custom payload for this request.BaseRequest.context()
Request.context()
If attached, returns the context for this request.RequestContext.dispatchLatency
(long dispatchLatency) Allows to set the dispatch duration of the request.RequestContext.encodeLatency
(long encodeLatency) RequestContext.incrementRetryAttempts
(Duration lastRetryDuration, RetryReason reason) RequestContext.lastChannelId
(String lastChannelId) RequestContext.lastDispatchedFrom
(HostAndPort lastDispatchedFrom) RequestContext.lastDispatchedTo
(HostAndPort lastDispatchedTo) RequestContext.lastDispatchedToNode
(NodeIdentifier lastDispatchedToNode) RequestContext.logicallyComplete()
RequestContext.logicallyComplete
(Throwable err) Signals that this request is completed fully, including streaming sections or logical sub-requests also being completed (i.e.RequestContext.serverLatency
(long serverLatency) -
Uses of RequestContext in com.couchbase.client.core.protostellar