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>
  • Constructor Details

    • GetResponse

      public GetResponse(io.etcd.jetcd.api.RangeResponse rangeResponse, ByteSequence namespace)
  • Method Details

    • getKvs

      public List<KeyValue> 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.