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
public class GetResponse extends AbstractResponse<io.etcd.jetcd.api.RangeResponse>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.etcd.jetcd.Response
Response.Header
-
-
Constructor Summary
Constructors Constructor Description GetResponse(io.etcd.jetcd.api.RangeResponse rangeResponse, ByteSequence namespace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCount()Returns the number of keys within the range when requested.java.util.List<KeyValue>getKvs()Returns a list of key-value pairs matched by the range request.booleanisMore()Returns if there are more keys to return in the requested range.-
Methods inherited from class io.etcd.jetcd.impl.AbstractResponse
getHeader, getResponse, getResponseHeader, toString
-
-
-
-
Constructor Detail
-
GetResponse
public GetResponse(io.etcd.jetcd.api.RangeResponse rangeResponse, ByteSequence namespace)
-
-
Method Detail
-
getKvs
public java.util.List<KeyValue> getKvs()
Returns a list of key-value pairs matched by the range request.
-
isMore
public boolean isMore()
Returns if there are more keys to return in the requested range.
-
getCount
public long getCount()
Returns the number of keys within the range when requested.
-
-