Package com.couchbase.client.core.msg.kv
Class PredeterminedPartitionRequest<R extends Response>
- java.lang.Object
-
- com.couchbase.client.core.msg.BaseRequest<R>
-
- com.couchbase.client.core.msg.kv.BaseKeyValueRequest<R>
-
- com.couchbase.client.core.msg.kv.PredeterminedPartitionRequest<R>
-
- All Implemented Interfaces:
KeyValueRequest<R>
,Request<R>
,ScopedRequest
- Direct Known Subclasses:
RangeScanCancelRequest
,RangeScanContinueRequest
,RangeScanCreateRequest
public abstract class PredeterminedPartitionRequest<R extends Response> extends BaseKeyValueRequest<R>
Parent class for requests which have their partition already set at creation time.
-
-
Constructor Summary
Constructors Constructor Description PredeterminedPartitionRequest(short partition, Duration timeout, CoreContext ctx, RetryStrategy retryStrategy, String key, CollectionIdentifier collectionIdentifier, RequestSpan span)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description short
partition()
Reads the currently set partition this request is targeted against.void
partition(short partition)
Allows to set the partition used for this request.-
Methods inherited from class com.couchbase.client.core.msg.kv.BaseKeyValueRequest
bucket, collectionIdentifier, encodedExternalKeyWithCollection, encodedKeyWithCollection, errorCode, indicateRejectedWithNotMyVbucket, key, nextOpaque, opaque, operationId, rejectedWithNotMyVbucket, serviceContext, serviceType
-
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, timeoutRegistration
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.couchbase.client.core.msg.kv.KeyValueRequest
decode, encode
-
Methods inherited from interface com.couchbase.client.core.msg.Request
absoluteTimeout, cancel, cancel, cancellationReason, cancelled, completed, context, createdAt, fail, failed, id, idempotent, name, requestSpan, response, retryStrategy, succeed, succeeded, target, timeout, timeoutElapsed, timeoutRegistration
-
-
-
-
Constructor Detail
-
PredeterminedPartitionRequest
public PredeterminedPartitionRequest(short partition, Duration timeout, CoreContext ctx, RetryStrategy retryStrategy, String key, CollectionIdentifier collectionIdentifier, RequestSpan span)
-
-
Method Detail
-
partition
public short partition()
Description copied from interface:KeyValueRequest
Reads the currently set partition this request is targeted against.- Specified by:
partition
in interfaceKeyValueRequest<R extends Response>
- Overrides:
partition
in classBaseKeyValueRequest<R extends Response>
-
partition
public void partition(short partition)
Description copied from interface:KeyValueRequest
Allows to set the partition used for this request.- Specified by:
partition
in interfaceKeyValueRequest<R extends Response>
- Overrides:
partition
in classBaseKeyValueRequest<R extends Response>
- Parameters:
partition
- the partition to set.
-
-