Class OTxPromiseManager<T>
java.lang.Object
com.orientechnologies.orient.server.distributed.impl.lock.OTxPromiseManager<T>
A promise manager keeps track of promises required for distributed transactions on a node.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpromise(T key, int version, OTransactionId txId, boolean force) voidrelease(T key, OTransactionId txId) voidreset()longsize()
-
Constructor Details
-
OTxPromiseManager
public OTxPromiseManager()
-
-
Method Details
-
promise
- 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
-
reset
public void reset() -
size
public long size()
-