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 when requested.
      Returns:
      count.