StateSummary (Apache ZooKeeper - Server 3.7.0 API)
Date: 2021-03-17

org.apache.zookeeper.server.quorum

## Class StateSummary

- java.lang.Object
- - org.apache.zookeeper.server.quorum.StateSummary

-     public class StateSummary
      extends Object

  This class encapsulates the state comparison logic. Specifically, how two different states are compared.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `StateSummary(long currentEpoch, long lastZxid)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object obj)`
    `long` | `getCurrentEpoch()`
    `long` | `getLastZxid()`
    `int` | `hashCode()`
    `boolean` | `isMoreRecentThan(StateSummary ss)`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### StateSummary

          public StateSummary(long currentEpoch,
                              long lastZxid)

  - ### Method Detail

    - #### getCurrentEpoch

          public long getCurrentEpoch()

    - #### getLastZxid

          public long getLastZxid()

    - #### isMoreRecentThan

          public boolean isMoreRecentThan(StateSummary ss)

    - #### equals

          public boolean equals(Object obj)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.