@InterfaceStability.Experimental @InterfaceAudience.Public public class SubMultiMutationRequest extends AbstractKeyValueRequest implements BinarySubdocMultiMutationRequest
Concrete implementation of a BinarySubdocMultiMutationRequest.
DEFAULT_PARTITION| Constructor and Description |
|---|
SubMultiMutationRequest(String key,
String bucket,
int expiration,
long cas,
List<MutationCommand> commands)
Create a new
SubMultiMutationRequest. |
SubMultiMutationRequest(String key,
String bucket,
int expiration,
long cas,
MutationCommand... commands)
Create a new
SubMultiMutationRequest. |
SubMultiMutationRequest(String key,
String bucket,
List<MutationCommand> commands)
Create a new
SubMultiMutationRequest. |
SubMultiMutationRequest(String key,
String bucket,
MutationCommand... commands)
Create a new
SubMultiMutationRequest. |
| Modifier and Type | Method and Description |
|---|---|
long |
cas() |
List<MutationCommand> |
commands() |
ByteBuf |
content()
The
ByteBuf representing the whole list of BinarySubdocMultiMutationRequest.commands(). |
int |
expiration() |
key, keyBytes, opaque, partition, partitionbucket, creationTime, incrementRetryCount, observable, password, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitkey, keyBytes, opaque, partition, partitionbucket, incrementRetryCount, observable, passwordcreationTimepublic SubMultiMutationRequest(String key, String bucket, int expiration, long cas, List<MutationCommand> commands)
Create a new SubMultiMutationRequest.
key - the key of the document to mutate into.bucket - the bucket of the document.expiration - the expiration (or TTL) to apply to the whole document additionally to the mutations.cas - the CAS value to check for when applying the whole set of mutations.commands - the set of internal mutations to apply to the document.public SubMultiMutationRequest(String key, String bucket, int expiration, long cas, MutationCommand... commands)
Create a new SubMultiMutationRequest.
key - the key of the document to mutate into.bucket - the bucket of the document.expiration - the expiration (or TTL) to apply to the whole document additionally to the mutations.cas - the CAS value to check for when applying the whole set of mutations.commands - the set of internal mutations to apply to the document.public SubMultiMutationRequest(String key, String bucket, List<MutationCommand> commands)
Create a new SubMultiMutationRequest.
key - the key of the document to mutate into.bucket - the bucket of the document.commands - the set of internal mutations to apply to the document.public SubMultiMutationRequest(String key, String bucket, MutationCommand... commands)
Create a new SubMultiMutationRequest.
key - the key of the document to mutate into.bucket - the bucket of the document.commands - the set of internal mutations to apply to the document.public int expiration()
expiration in interface BinarySubdocMultiMutationRequestpublic long cas()
cas in interface BinarySubdocMultiMutationRequestpublic List<MutationCommand> commands()
commands in interface BinarySubdocMultiMutationRequestMutationCommand describing the multiple operations to apply.public ByteBuf content()
BinarySubdocMultiMutationRequestThe ByteBuf representing the whole list of BinarySubdocMultiMutationRequest.commands().
This buffer is to be automatically released once the message has been written on the wire.
content in interface BinarySubdocMultiMutationRequestCopyright © 2016 Couchbase, Inc.. All rights reserved.