Interface BinarySubdocMultiMutationRequest
-
- All Superinterfaces:
BinaryRequest
,CouchbaseMessage
,CouchbaseRequest
- All Known Implementing Classes:
SubMultiMutationRequest
@Committed @Public public interface BinarySubdocMultiMutationRequest extends BinaryRequest
ABinarySubdocRequest
that describes multiple mutations on a single document. The mutations are applied atomically, so they either all succeed or none is applied. EachMutationCommand
can act on a different path inside the document and be of a different nature. A multi-mutation request can also alter the enclosing document's expiry and flags.- Since:
- 1.2
- Author:
- Simon Baslé
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
cas()
List<MutationCommand>
commands()
ByteBuf
content()
TheByteBuf
representing the whole list ofcommands()
.byte
docFlags()
int
expiration()
-
Methods inherited from interface com.couchbase.client.core.message.kv.BinaryRequest
key, keyBytes, opaque, partition, partition
-
Methods inherited from interface com.couchbase.client.core.message.CouchbaseMessage
creationTime
-
Methods inherited from interface com.couchbase.client.core.message.CouchbaseRequest
bucket, complete, dispatchHostname, dispatchHostname, emit, fail, incrementRetryCount, isActive, lastLocalId, lastLocalId, lastLocalSocket, lastLocalSocket, lastRemoteSocket, lastRemoteSocket, maxRetryDuration, maxRetryDuration, observable, operationId, password, retryAfter, retryAfter, retryCount, retryDelay, retryDelay, span, span, subscriber, succeed, username
-
-
-
-
Method Detail
-
expiration
int expiration()
- Returns:
- the expiration (or TTL) to apply to the document along the mutations, 0 for no TTL.
-
cas
long cas()
- Returns:
- the CAS to use for the mutations (if needed) or 0L to ignore
-
docFlags
byte docFlags()
- Returns:
- the document flags for the Request
-
commands
List<MutationCommand> commands()
- Returns:
- a list of the
MutationCommand
describing the multiple mutations to apply.
-
content
ByteBuf content()
TheByteBuf
representing the whole list ofcommands()
. This buffer is to be automatically released once the message has been written on the wire.- Returns:
- the ByteBuf to serve as a memcached protocol message body.
-
-