Class TargetedQueryRequest
- java.lang.Object
-
- com.couchbase.client.core.msg.BaseRequest<QueryResponse>
-
- com.couchbase.client.core.msg.query.QueryRequest
-
- com.couchbase.client.core.msg.query.TargetedQueryRequest
-
- All Implemented Interfaces:
ChunkDecodable<QueryChunkHeader,QueryChunkRow,QueryChunkTrailer,QueryResponse>,Encodable<com.couchbase.client.core.deps.io.netty.handler.codec.http.FullHttpRequest>,HttpRequest<QueryChunkHeader,QueryChunkRow,QueryChunkTrailer,QueryResponse>,Request<QueryResponse>,TargetedRequest
@Volatile public class TargetedQueryRequest extends QueryRequest implements TargetedRequest
-
-
Constructor Summary
Constructors Constructor Description TargetedQueryRequest(Duration timeout, CoreContext ctx, RetryStrategy retryStrategy, Authenticator authenticator, String statement, byte[] query, boolean idempotent, String contextId, RequestSpan parentSpan, String bucket, String scope, NodeIdentifier target)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeIdentifiertarget()Returns the node that should service this request, or null to let the service locator decide.-
Methods inherited from class com.couchbase.client.core.msg.query.QueryRequest
bucket, credentials, decode, encode, idempotent, name, operationId, queryContext, scope, serviceContext, serviceType, statement, toString
-
Methods inherited from class com.couchbase.client.core.msg.BaseRequest
absoluteTimeout, cancel, cancellationReason, cancelled, completed, context, createdAt, fail, failed, id, requestSpan, response, retryStrategy, succeed, succeeded, timeout, timeoutElapsed
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.couchbase.client.core.msg.Request
absoluteTimeout, cancel, cancellationReason, cancelled, completed, context, createdAt, fail, failed, id, requestSpan, response, retryStrategy, succeed, succeeded, timeout, timeoutElapsed
-
-
-
-
Constructor Detail
-
TargetedQueryRequest
public TargetedQueryRequest(Duration timeout, CoreContext ctx, RetryStrategy retryStrategy, Authenticator authenticator, String statement, byte[] query, boolean idempotent, String contextId, RequestSpan parentSpan, String bucket, String scope, NodeIdentifier target)
-
-
Method Detail
-
target
public NodeIdentifier target()
Description copied from interface:RequestReturns the node that should service this request, or null to let the service locator decide.- Specified by:
targetin interfaceRequest<QueryResponse>- Returns:
- (nullable)
-
-