@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, partition
bucket, creationTime, incrementRetryCount, observable, password, retryCount, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
key, keyBytes, opaque, partition, partition
bucket, incrementRetryCount, observable, password, retryCount
creationTime
public 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 BinarySubdocMultiMutationRequest
public long cas()
cas
in interface BinarySubdocMultiMutationRequest
public List<MutationCommand> commands()
commands
in interface BinarySubdocMultiMutationRequest
MutationCommand
describing the multiple operations to apply.public ByteBuf content()
BinarySubdocMultiMutationRequest
The 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 BinarySubdocMultiMutationRequest
Copyright © 2016 Couchbase, Inc.. All rights reserved.