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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static GetReplicaResult
from(com.couchbase.client.core.api.kv.CoreGetResult get, Transcoder transcoder)
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, contentAsBytes, contentAsObject, expiry, expiryTime
-
-
-
-
Method Detail
-
from
@Internal public static GetReplicaResult from(ReplicaHelper.GetReplicaResponse response, Transcoder transcoder)
-
from
@Internal public static GetReplicaResult from(com.couchbase.client.core.api.kv.CoreGetResult get, Transcoder transcoder)
-
isReplica
public boolean isReplica()
Returns whether the replica that returned this result was the replica or the active.
-
-