Modifier and Type | Method and Description |
---|---|
void |
RequestSpan.requestContext(RequestContext requestContext)
Allows to set a request context to the request span.
|
Constructor and Description |
---|
IndividualReplicaGetFailedEvent(RequestContext context) |
PreparedStatementRetriedEvent(Duration duration,
RequestContext context,
RetryReason retryReason,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
void |
ThresholdRequestSpan.requestContext(RequestContext requestContext) |
void |
NoopRequestSpan.requestContext(RequestContext requestContext) |
Modifier and Type | Method and Description |
---|---|
RequestContext |
CoreHttpResponse.requestContext() |
Constructor and Description |
---|
CoreHttpResponse(ResponseStatus status,
byte[] content,
int httpStatus,
HttpChannelContext channelContext,
RequestContext requestContext) |
Modifier and Type | Method and Description |
---|---|
RequestContext |
QueryErrorContext.requestContext() |
RequestContext |
CancellationErrorContext.requestContext()
Returns the underlying request context (if present) for debug reasons.
|
RequestContext |
ManagerErrorContext.requestContext() |
RequestContext |
ViewErrorContext.requestContext() |
RequestContext |
EventingErrorContext.requestContext() |
RequestContext |
SearchErrorContext.requestContext() |
RequestContext |
AnalyticsErrorContext.requestContext() |
Constructor and Description |
---|
AnalyticsErrorContext(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) |
Modifier and Type | Method and Description |
---|---|
protected RequestContext |
BaseChunkResponseParser.requestContext() |
Modifier and Type | Method and 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.
|
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() |
RequestContext |
RequestContext.logicallyComplete(Throwable err)
Signals that this request is completed fully, including streaming sections or logical sub-requests also being
completed (i.e.
|
RequestContext |
RequestContext.serverLatency(long serverLatency) |
Modifier and Type | Method and Description |
---|---|
RequestContext |
ProtostellarBaseRequest.context() |
Copyright © 2024 Couchbase, Inc.. All rights reserved.