Package com.couchbase.client.core.msg.kv
Class SubdocMutateResponse
- java.lang.Object
-
- com.couchbase.client.core.msg.BaseResponse
-
- com.couchbase.client.core.msg.kv.SubdocMutateResponse
-
- All Implemented Interfaces:
Response
public class SubdocMutateResponse extends BaseResponse
-
-
Constructor Summary
Constructors Constructor Description SubdocMutateResponse(ResponseStatus status, Optional<CouchbaseException> error, SubDocumentField[] values, long cas, Optional<MutationToken> mutationToken)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
cas()
Optional<CouchbaseException>
error()
Error will be set, and should be checked and handled, when status==SUBDOC_FAILUREOptional<MutationToken>
mutationToken()
CouchbaseException
throwError(SubdocMutateRequest request, boolean insertDocument)
String
toString()
SubDocumentField[]
values()
-
Methods inherited from class com.couchbase.client.core.msg.BaseResponse
status
-
-
-
-
Constructor Detail
-
SubdocMutateResponse
public SubdocMutateResponse(ResponseStatus status, Optional<CouchbaseException> error, SubDocumentField[] values, long cas, Optional<MutationToken> mutationToken)
-
-
Method Detail
-
values
public SubDocumentField[] values()
-
cas
public long cas()
-
mutationToken
public Optional<MutationToken> mutationToken()
-
error
public Optional<CouchbaseException> error()
Error will be set, and should be checked and handled, when status==SUBDOC_FAILURE
-
throwError
public CouchbaseException throwError(SubdocMutateRequest request, boolean insertDocument)
-
toString
public String toString()
- Overrides:
toString
in classBaseResponse
-
-