Class HashKVResponse

java.lang.Object
io.etcd.jetcd.impl.AbstractResponse<io.etcd.jetcd.api.HashKVResponse>
io.etcd.jetcd.maintenance.HashKVResponse
All Implemented Interfaces:
Response

public class HashKVResponse extends AbstractResponse<io.etcd.jetcd.api.HashKVResponse>
HashKVResponse returned by Maintenance.hashKV(String, long).
  • Constructor Details

    • HashKVResponse

      public HashKVResponse(io.etcd.jetcd.api.HashKVResponse response)
  • Method Details

    • getHash

      public int getHash()
      Returns the hash value computed from the responding member's MVCC keys up to a given revision.
      Returns:
      the response hash.
    • getCompacted

      public long getCompacted()
      Returns the compacted revision of key-value store when hash begins.
      Returns:
      if compacted.