Package io.etcd.jetcd.kv
Class GetResponse
java.lang.Object
io.etcd.jetcd.impl.AbstractResponse<io.etcd.jetcd.api.RangeResponse>
io.etcd.jetcd.kv.GetResponse
- All Implemented Interfaces:
Response
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.etcd.jetcd.Response
Response.Header -
Constructor Summary
ConstructorsConstructorDescriptionGetResponse(io.etcd.jetcd.api.RangeResponse rangeResponse, ByteSequence namespace) -
Method Summary
Methods inherited from class io.etcd.jetcd.impl.AbstractResponse
getHeader, getResponse, getResponseHeader, toString
-
Constructor Details
-
GetResponse
-
-
Method Details
-
getKvs
Returns a list of key-value pairs matched by the range request.- Returns:
- kvs.
-
isMore
public boolean isMore()Returns if there are more keys to return in the requested range.- Returns:
- more.
-
getCount
public long getCount()Returns the number of keys within the range requested. Note this value is never affected by filtering options (limit, min or max created or modified revisions) Count is the count for keys on the range part of a request. Filters for limit and created or modified revision ranges restrict the returned KVs, but not the count.- Returns:
- count.
-