Uses of Interface
com.couchbase.client.core.msg.Response
Packages that use Response
Package
Description
-
Uses of Response in com.couchbase.client.core
Methods in com.couchbase.client.core with type parameters of type ResponseModifier 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.Method parameters in com.couchbase.client.core with type arguments of type ResponseModifier and TypeMethodDescriptionvoidRegisters the given request to be tracked with its timeout value.voidTimer.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
Methods in com.couchbase.client.core.classic with type parameters of type ResponseModifier 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
Methods in com.couchbase.client.core.endpoint with type parameters of type Response -
Uses of Response in com.couchbase.client.core.endpoint.http
Classes in com.couchbase.client.core.endpoint.http that implement Response -
Uses of Response in com.couchbase.client.core.error
Methods in com.couchbase.client.core.error with parameters of type ResponseModifier and TypeMethodDescriptionstatic CouchbaseExceptionDefaultErrorUtil.keyValueStatusToException(KeyValueRequest<? extends Response> request, Response response) Maps common KV response status codes to their corresponding user-level exceptions.Method parameters in com.couchbase.client.core.error with type arguments of type ResponseModifier and TypeMethodDescriptionstatic CouchbaseExceptionDefaultErrorUtil.keyValueStatusToException(KeyValueRequest<? extends Response> request, Response response) Maps common KV response status codes to their corresponding user-level exceptions.static CouchbaseExceptionDefaultErrorUtil.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
Methods in com.couchbase.client.core.error.context with parameters of type ResponseModifier and TypeMethodDescriptionstatic KeyValueErrorContextKeyValueErrorContext.completedRequest(KeyValueRequest<?> request, Response response) -
Uses of Response in com.couchbase.client.core.io.netty
Method parameters in com.couchbase.client.core.io.netty with type arguments of type ResponseModifier and TypeMethodDescriptionprotected ExceptionNonChunkedHttpMessageHandler.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 voidTracingUtils.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
Method parameters in com.couchbase.client.core.io.netty.eventing with type arguments of type ResponseModifier and TypeMethodDescriptionprotected ExceptionNonChunkedEventingMessageHandler.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
Classes in com.couchbase.client.core.msg with type parameters of type ResponseModifier and TypeClassDescriptionclassBaseRequest<R extends Response>Base class for allRequests.interfaceNonChunkedHttpRequest<R extends Response>interfaceRepresents aRequestflowing through the client.Classes in com.couchbase.client.core.msg that implement ResponseModifier and TypeClassDescriptionclassThe parent class for all responses passing through the SDK.Methods in com.couchbase.client.core.msg that return types with arguments of type ResponseConstructor parameters in com.couchbase.client.core.msg with type arguments of type ResponseModifierConstructorDescriptionRequestContext(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
Classes in com.couchbase.client.core.msg.analytics that implement Response -
Uses of Response in com.couchbase.client.core.msg.chunk
Subinterfaces of Response in com.couchbase.client.core.msg.chunkModifier and TypeInterfaceDescriptioninterfaceChunkedResponse<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
Classes in com.couchbase.client.core.msg.kv with type parameters of type ResponseModifier and TypeClassDescriptionclassBaseKeyValueRequest<R extends Response>TheBaseKeyValueRequestshould be subclassed by all KeyValue requests since it provides common ground for all of them (i.e. adding the kv partition needed).interfaceKeyValueRequest<R extends Response>Main parent interface for all Key/Value requests.classPredeterminedPartitionRequest<R extends Response>Parent class for requests which have their partition already set at creation time.Classes in com.couchbase.client.core.msg.kv that implement ResponseModifier and TypeClassDescriptionclassclassclassclassclassRepresents the response of aGetAndLockRequest.classRepresents the response of aGetAndTouchRequest.classclassclassRepresents the response of aGetMetaRequest.final classRepresents the response of aGetRequest.classclassclassThe parent class for all KV responses passing through the SDK that potentially contain flexible extras.classclassResponse for the special purposeMultiObserveViaCasRequest.classThe response of aNoopRequest.classclassclassclassclassclassclassclassclassclassclassclassclass -
Uses of Response in com.couchbase.client.core.msg.manager
Classes in com.couchbase.client.core.msg.manager with type parameters of type ResponseModifier and TypeClassDescriptionclassBaseManagerRequest<R extends Response>Base class for the manager requests, mainly to define the service type in a uniform way.interfaceManagerRequest<R extends Response>Parent interface for all requests going to the cluster manager.Classes in com.couchbase.client.core.msg.manager that implement ResponseModifier and TypeClassDescriptionclassclassclass -
Uses of Response in com.couchbase.client.core.msg.query
Classes in com.couchbase.client.core.msg.query that implement Response -
Uses of Response in com.couchbase.client.core.msg.search
Classes in com.couchbase.client.core.msg.search that implement Response -
Uses of Response in com.couchbase.client.core.msg.view
Classes in com.couchbase.client.core.msg.view that implement Response -
Uses of Response in com.couchbase.client.core.node
Methods in com.couchbase.client.core.node with type parameters of type ResponseModifier and TypeMethodDescriptionNode.send(R request) Sends the request into thisNode.Node.sendIntoRetry(R request) Retries the request.Method parameters in com.couchbase.client.core.node with type arguments of type ResponseModifier and TypeMethodDescriptionprotected booleanAnalyticsLocator.checkServiceNotAvailable(Request<? extends Response> request, ClusterConfig config) protected booleanRoundRobinLocator.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 booleanViewLocator.checkServiceNotAvailable(Request<? extends Response> request, ClusterConfig config) voidKeyValueLocator.dispatch(Request<? extends Response> request, List<Node> nodes, ClusterConfig config, CoreContext ctx) voidLocator.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.voidRoundRobinLocator.dispatch(Request<? extends Response> request, List<Node> nodes, ClusterConfig config, CoreContext ctx) protected booleanRoundRobinLocator.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 booleanViewLocator.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
Method parameters in com.couchbase.client.core.retry with type arguments of type ResponseModifier and TypeMethodDescriptionstatic DurationRetryOrchestrator.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 voidRetryOrchestrator.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
Methods in com.couchbase.client.core.service with type parameters of type Response -
Uses of Response in com.couchbase.client.core.service.strategy
Methods in com.couchbase.client.core.service.strategy with type parameters of type Response -
Uses of Response in com.couchbase.client.core.transaction.components
Classes in com.couchbase.client.core.transaction.components that implement Response