public class QueryPingRequest extends BaseRequest<QueryPingResponse> implements NonChunkedHttpRequest<QueryPingResponse>, TargetedRequest
| Constructor and Description |
|---|
QueryPingRequest(Duration timeout,
CoreContext ctx,
RetryStrategy retryStrategy,
NodeIdentifier target) |
| Modifier and Type | Method and Description |
|---|---|
QueryPingResponse |
decode(com.couchbase.client.core.deps.io.netty.handler.codec.http.FullHttpResponse response,
HttpChannelContext context) |
com.couchbase.client.core.deps.io.netty.handler.codec.http.FullHttpRequest |
encode() |
boolean |
idempotent()
Returns if the given request is idempotent or not.
|
Map<String,Object> |
serviceContext()
Returns contextual information for each individual service.
|
ServiceType |
serviceType()
The service type of this request.
|
NodeIdentifier |
target()
The target where this request must be dispatched to.
|
absoluteTimeout, cancel, cancellationReason, cancelled, completed, context, createdAt, fail, failed, id, requestSpan, response, retryStrategy, succeed, succeeded, timeout, timeoutElapsedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitabsoluteTimeout, cancel, cancellationReason, cancelled, completed, context, createdAt, fail, failed, id, name, operationId, requestSpan, response, retryStrategy, succeed, succeeded, timeout, timeoutElapsedpublic QueryPingRequest(Duration timeout, CoreContext ctx, RetryStrategy retryStrategy, NodeIdentifier target)
public QueryPingResponse decode(com.couchbase.client.core.deps.io.netty.handler.codec.http.FullHttpResponse response, HttpChannelContext context)
decode in interface NonChunkedHttpRequest<QueryPingResponse>public com.couchbase.client.core.deps.io.netty.handler.codec.http.FullHttpRequest encode()
public ServiceType serviceType()
RequestserviceType in interface Request<QueryPingResponse>public NodeIdentifier target()
TargetedRequesttarget in interface TargetedRequestpublic boolean idempotent()
RequestBy default, this method always returns false for data consistency reasons. Only specific idempotent operations should override this default since it impacts retry handling quite a bit. DO NOT SET THIS TO TRUE ON MUTATING OPERATIONS!
idempotent in interface Request<QueryPingResponse>public Map<String,Object> serviceContext()
RequestserviceContext in interface Request<QueryPingResponse>serviceContext in class BaseRequest<QueryPingResponse>Copyright © 2021 Couchbase, Inc.. All rights reserved.