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
Modifier and Type Method Description NodeIdentifier
target()
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 Details
-
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 Details
-
target
Description copied from interface:Request
Returns the node that should service this request, or null to let the service locator decide.- Specified by:
target
in interfaceRequest<QueryResponse>
- Returns:
- (nullable)
-