Package com.couchbase.client.java.kv
Class GetReplicaResult
java.lang.Object
com.couchbase.client.java.kv.GetResult
com.couchbase.client.java.kv.GetReplicaResult
Extends GetResult to include additional information for get-from-replica style calls.
- Since:
- 3.0.0
-
Field Summary
Fields inherited from class com.couchbase.client.java.kv.GetResult
content, flags, transcoder
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static GetReplicaResult
from
(CoreGetResult get, Transcoder transcoder) static GetReplicaResult
from
(ReplicaHelper.GetReplicaResponse response, Transcoder transcoder) int
hashCode()
boolean
Returns whether the replica that returned this result was the replica or the active.toString()
Methods inherited from class com.couchbase.client.java.kv.GetResult
cas, contentAs, contentAs, contentAsArray, contentAsBytes, contentAsObject, expiry, expiryTime
-
Method Details
-
from
@Internal public static GetReplicaResult from(ReplicaHelper.GetReplicaResponse response, Transcoder transcoder) -
from
-
isReplica
public boolean isReplica()Returns whether the replica that returned this result was the replica or the active. -
toString
-
equals
-
hashCode
public int hashCode()
-