Uses of Interface
com.couchbase.client.core.msg.Response
Package
Description
-
Uses of Response in com.couchbase.client.core
Modifier and TypeMethodDescription<R extends Response>
voidSends a command into the core layer and registers the request with the timeout timer.<R extends Response>
voidSends a command into the core layer and allows to avoid timeout registration.Modifier and TypeMethodDescriptionvoid
Registers the given request to be tracked with its timeout value.void
Timer.scheduleForRetry
(Core core, Request<? extends Response> request, Duration runAfter) Schedules a request to be retried after the given duration. -
Uses of Response in com.couchbase.client.core.classic
Modifier and TypeMethodDescriptionstatic <T,
RES extends Response>
CoreAsyncResponse<T> ClassicHelper.newAsyncResponse
(Request<RES> request, CompletableFuture<T> future) Returns a new async response whose cancellation task callsRequest.cancel(CancellationReason)
. -
Uses of Response in com.couchbase.client.core.endpoint
-
Uses of Response in com.couchbase.client.core.endpoint.http
-
Uses of Response in com.couchbase.client.core.error
Modifier and TypeMethodDescriptionstatic CouchbaseException
DefaultErrorUtil.keyValueStatusToException
(KeyValueRequest<? extends Response> request, Response response) Maps common KV response status codes to their corresponding user-level exceptions.Modifier and TypeMethodDescriptionstatic CouchbaseException
DefaultErrorUtil.keyValueStatusToException
(KeyValueRequest<? extends Response> request, Response response) Maps common KV response status codes to their corresponding user-level exceptions.static CouchbaseException
DefaultErrorUtil.keyValueStatusToException
(KeyValueRequest<? extends Response> request, ResponseStatus status, KeyValueErrorContext ctx, String defaultErrorString) AuthenticationFailureException.onAuthError
(Request<? extends Response> request, Throwable cause) Must only be called on an AUTHENTICATION_ERROR RetryReason. -
Uses of Response in com.couchbase.client.core.error.context
Modifier and TypeMethodDescriptionstatic KeyValueErrorContext
KeyValueErrorContext.completedRequest
(KeyValueRequest<?> request, Response response) -
Uses of Response in com.couchbase.client.core.io.netty
Modifier and TypeMethodDescriptionprotected Exception
NonChunkedHttpMessageHandler.failRequestWith
(com.couchbase.client.core.deps.io.netty.handler.codec.http.HttpResponseStatus status, String content, NonChunkedHttpRequest<Response> request) To be implemented by children, should return the proper service exception type for each.static void
TracingUtils.setCommonKVSpanAttributes
(RequestSpan span, KeyValueRequest<Response> request) Sets attributes that are usefully duplicated across multiple spans. -
Uses of Response in com.couchbase.client.core.io.netty.eventing
Modifier and TypeMethodDescriptionprotected Exception
NonChunkedEventingMessageHandler.failRequestWith
(com.couchbase.client.core.deps.io.netty.handler.codec.http.HttpResponseStatus status, String content, NonChunkedHttpRequest<Response> request) -
Uses of Response in com.couchbase.client.core.msg
Modifier and TypeClassDescriptionclass
BaseRequest<R extends Response>
Base class for allRequests
.interface
NonChunkedHttpRequest<R extends Response>
interface
Represents aRequest
flowing through the client.Modifier and TypeClassDescriptionclass
The parent class for all responses passing through the SDK.ModifierConstructorDescriptionRequestContext
(CoreContext ctx, Request<? extends Response> request) RequestContext
(Core core, long contextId, CoreEnvironment environment, Authenticator authenticator, Request<? extends Response> request) -
Uses of Response in com.couchbase.client.core.msg.analytics
-
Uses of Response in com.couchbase.client.core.msg.chunk
Modifier and TypeInterfaceDescriptioninterface
ChunkedResponse<H extends ChunkHeader,
R extends ChunkRow, T extends ChunkTrailer> Describes a full chunked response with its required sections. -
Uses of Response in com.couchbase.client.core.msg.kv
Modifier and TypeClassDescriptionclass
BaseKeyValueRequest<R extends Response>
TheBaseKeyValueRequest
should be subclassed by all KeyValue requests since it provides common ground for all of them (i.e.interface
KeyValueRequest<R extends Response>
Main parent interface for all Key/Value requests.class
PredeterminedPartitionRequest<R extends Response>
Parent class for requests which have their partition already set at creation time.Modifier and TypeClassDescriptionclass
class
class
class
class
Represents the response of aGetAndLockRequest
.class
Represents the response of aGetAndTouchRequest
.class
class
class
Represents the response of aGetMetaRequest
.final class
Represents the response of aGetRequest
.class
class
class
The parent class for all KV responses passing through the SDK that potentially contain flexible extras.class
class
Response for the special purposeMultiObserveViaCasRequest
.class
The response of aNoopRequest
.class
class
class
class
class
class
class
class
class
class
class
class
class
-
Uses of Response in com.couchbase.client.core.msg.manager
Modifier and TypeClassDescriptionclass
BaseManagerRequest<R extends Response>
Base class for the manager requests, mainly to define the service type in a uniform way.interface
ManagerRequest<R extends Response>
Parent interface for all requests going to the cluster manager.Modifier and TypeClassDescriptionclass
class
class
-
Uses of Response in com.couchbase.client.core.msg.query
-
Uses of Response in com.couchbase.client.core.msg.search
-
Uses of Response in com.couchbase.client.core.msg.view
-
Uses of Response in com.couchbase.client.core.node
Modifier and TypeMethodDescriptionNode.send
(R request) Sends the request into thisNode
.Node.sendIntoRetry
(R request) Retries the request.Modifier and TypeMethodDescriptionprotected boolean
AnalyticsLocator.checkServiceNotAvailable
(Request<? extends Response> request, ClusterConfig config) protected boolean
RoundRobinLocator.checkServiceNotAvailable
(Request<? extends Response> request, ClusterConfig config) Can be overridden to check if a request should be cancelled immediately that the service is not supported.protected boolean
ViewLocator.checkServiceNotAvailable
(Request<? extends Response> request, ClusterConfig config) void
KeyValueLocator.dispatch
(Request<? extends Response> request, List<Node> nodes, ClusterConfig config, CoreContext ctx) void
Locator.dispatch
(Request<? extends Response> request, List<Node> nodes, ClusterConfig config, CoreContext ctx) Given the environment and node information, the implementation locates the right set of nodes and dispatches the request into them.void
RoundRobinLocator.dispatch
(Request<? extends Response> request, List<Node> nodes, ClusterConfig config, CoreContext ctx) protected boolean
RoundRobinLocator.nodeCanBeUsed
(Node node, Request<? extends Response> request, ClusterConfig config) This method can be overridden for additional per-node checks in addition to the service-type based check already performed inRoundRobinLocator.filterNodes(List, Request, ClusterConfig)
.protected boolean
ViewLocator.nodeCanBeUsed
(Node node, Request<? extends Response> request, ClusterConfig config) In addition to checking that the view service is enabled, for view dispatching it is vital that a request is only ever sent to a node which has active primary KV partitions. -
Uses of Response in com.couchbase.client.core.retry
Modifier and TypeMethodDescriptionstatic Duration
RetryOrchestrator.capDuration
(Duration uncappedDuration, Request<? extends Response> request) Calculates the potentially capped retry duration so we do not schedule a longer retry than the actual total timeout.static void
RetryOrchestrator.maybeRetry
(CoreContext ctx, Request<? extends Response> request, RetryReason reason) Retry or cancel the given request, depending on its state and the configuredRetryStrategy
.BestEffortRetryStrategy.shouldRetry
(Request<? extends Response> request, RetryReason reason) Determines if a request should be retried or not (and if so, after which duration).FailFastRetryStrategy.shouldRetry
(Request<? extends Response> request, RetryReason reason) RetryStrategy.shouldRetry
(Request<? extends Response> request, RetryReason reason) Checks if the given request should be retried and how long the retry delay should be. -
Uses of Response in com.couchbase.client.core.service
-
Uses of Response in com.couchbase.client.core.service.strategy
-
Uses of Response in com.couchbase.client.core.transaction.components