Class OTxPromiseManager<T>

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

public class OTxPromiseManager<T> extends Object
A promise manager keeps track of promises required for distributed transactions on a node.
  • Constructor Details

    • OTxPromiseManager

      public OTxPromiseManager()
  • Method Details

    • promise

      public OTransactionId promise(T key, int version, OTransactionId txId, boolean force)
      Parameters:
      key -
      version -
      txId -
      force - allows a tx to acquire the promise even if it is held by another tx. It must be used only in the second phase.
      Returns:
      if using force, returns the ID of the tx that was previously holding the promise.
    • release

      public void release(T key, OTransactionId txId)
    • reset

      public void reset()
    • size

      public long size()