Package com.couchbase.client.java.kv
Class GetReplicaResult
java.lang.Object
com.couchbase.client.java.kv.GetResult
com.couchbase.client.java.kv.GetReplicaResult
public class GetReplicaResult extends GetResult
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 Type Method Description boolean
equals(Object o)
static GetReplicaResult
from(ReplicaHelper.GetReplicaResponse response, Transcoder transcoder)
int
hashCode()
boolean
isReplica()
Returns whether the replica that returned this result was the replica or the active.String
toString()
Methods inherited from class com.couchbase.client.java.kv.GetResult
cas, contentAs, contentAs, contentAsArray, contentAsObject, convertContentToString, expiry, expiryTime
-
Method Details
-
from
@Internal public static GetReplicaResult from(ReplicaHelper.GetReplicaResponse response, Transcoder transcoder) -
isReplica
public boolean isReplica()Returns whether the replica that returned this result was the replica or the active. -
toString
-
equals
-
hashCode
public int hashCode()
-