public interface ThreadedTransactionalGraph extends TransactionalGraph
newTransaction() returns a TransactionalGraph that represents its own transactional context independent of the executing thread.
Hence, one can have multiple threads operating against a single transaction represented by the returned TransactionalGraph object. This is useful for parallelizing graph algorithms.
Note, that one needs to call TransactionalGraph.commit() or TransactionalGraph.rollback() to close the transactions returned
by newTransaction().TransactionalGraph.Conclusion| Modifier and Type | Method and Description |
|---|---|
TransactionalGraph |
newTransaction()
Returns a
TransactionalGraph that represents a transactional context independent of the executing transaction. |
commit, rollback, stopTransactionaddEdge, addVertex, getEdge, getEdges, getEdges, getFeatures, getVertex, getVertices, getVertices, query, removeEdge, removeVertex, shutdownTransactionalGraph newTransaction()
TransactionalGraph that represents a transactional context independent of the executing transaction.Copyright © 2010-2014. All Rights Reserved.