java.lang.Object
com.orientechnologies.orient.server.distributed.impl.lock.OTxPromise<T>

public class OTxPromise<T> extends Object
A promise records a resource and its version required for a transaction.
  • Constructor Details

    • OTxPromise

      public OTxPromise(T key, int version, OTransactionId txId)
  • Method Details

    • getVersion

      public int getVersion()
    • getTxId

      public OTransactionId getTxId()
    • getKey

      public T getKey()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object