Package com.couchbase.client.java.kv
Class MutationResult
- java.lang.Object
-
- com.couchbase.client.java.kv.MutationResult
-
- Direct Known Subclasses:
CounterResult
,MutateInResult
public class MutationResult extends Object
Result returned from all kinds of Key-Value mutation operations.- Since:
- 3.0.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
cas()
Returns the CAS value of the document after the performed mutation.boolean
equals(Object o)
int
hashCode()
Optional<MutationToken>
mutationToken()
Returns theMutationToken
of the document after the performed mutation.String
toString()
-
-
-
Method Detail
-
cas
public long cas()
Returns the CAS value of the document after the performed mutation.
-
mutationToken
public Optional<MutationToken> mutationToken()
Returns theMutationToken
of the document after the performed mutation.Note that this value is only present if mutation tokens have been enabled on the environment configuration.
-
-