Modifier and Type | Method and Description |
---|---|
RequestContext |
InternalSpan.requestContext()
Returns the request context so it can be accessed once set, usually by the tracer implementation.
|
Modifier and Type | Method and 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.
|
Constructor and 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) |
Modifier and Type | Method and Description |
---|---|
RequestContext |
ThresholdInternalSpan.requestContext() |
RequestContext |
NoopInternalSpan.requestContext() |
Modifier and Type | Method and Description |
---|---|
void |
ThresholdInternalSpan.requestContext(RequestContext ctx) |
void |
NoopInternalSpan.requestContext(RequestContext ctx) |
Modifier and Type | Method and Description |
---|---|
RequestContext |
AnalyticsErrorContext.requestContext() |
RequestContext |
QueryErrorContext.requestContext() |
RequestContext |
ViewErrorContext.requestContext() |
RequestContext |
SearchErrorContext.requestContext() |
RequestContext |
CancellationErrorContext.requestContext()
Returns the underlying request context for debug reasons.
|
Constructor and 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) |
Modifier and Type | Method and Description |
---|---|
protected RequestContext |
BaseChunkResponseParser.requestContext() |
Modifier and Type | Method and Description |
---|---|
void |
ChunkResponseParser.updateRequestContext(RequestContext requestContext)
Sets the request context for the current request in the parser, can be used for error handling.
|
void |
BaseChunkResponseParser.updateRequestContext(RequestContext requestContext) |
Modifier and Type | Method and Description |
---|---|
RequestContext |
RequestContext.cancel()
Allows to cancel the attached
Request from anywhere in the code. |
RequestContext |
RequestContext.clientContext(Map<String,Object> clientContext)
Allows to set a custom payload for this request.
|
RequestContext |
Request.context()
If attached, returns the context for this request.
|
RequestContext |
BaseRequest.context() |
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.lastDispatchedToNode(NodeIdentifier lastDispatchedToNode) |
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) |
Copyright © 2020 Couchbase, Inc.. All rights reserved.