Class AbstractThreadLocalTransaction

  • All Implemented Interfaces:
    AutoCloseable, Transaction

    public abstract class AbstractThreadLocalTransaction
    extends AbstractTransaction
    A base implementation of Transaction that provides core functionality for transaction listeners using ThreadLocal. In this implementation, the listeners are bound to the current thread of execution (usually the same as the transaction for most graph database implementations). Therefore, when AbstractTransaction.commit() is called on a particular thread, the only listeners that get notified are those bound to that thread.
    Author:
    Stephen Mallette (http://stephen.genoprime.com)
    See Also:
    AbstractThreadedTransaction