Class VersionedValue<T>


public class VersionedValue<T> extends Object
POJO for versioned value.

Client must never construct this but get through SharedValue.getVersionedValue() or SharedCount.getVersionedValue().

  • Method Details

    • getZxid

      public long getZxid()
      It is Stat.getMzxid() of the corresponding node.
    • getVersion

      public int getVersion()
      It is Stat.getVersion() of the corresponding node.

      It is known that this will overflow and hence not monotonic.

    • getValue

      public T getValue()