Tx
, WrappedTransaction
, AutoCloseable
public abstract class AbstractTx<G extends FramedTxGraph> extends DelegatingTransaction implements Tx
threadLocalGraph
Constructor | Description |
---|---|
AbstractTx(org.apache.tinkerpop.gremlin.structure.Transaction delegate,
WrappedFramedGraph<? extends org.apache.tinkerpop.gremlin.structure.Graph> parentGraph) |
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
Invoke rollback or commit when closing the autoclosable.
|
void |
failure() |
Mark the transaction as failed.
|
void |
success() |
Mark the transaction as succeeded.
|
addTransactionListener, clearTransactionListeners, commit, createThreadedTx, getDelegate, getGraph, isOpen, open, readWrite, removeTransactionListener, rollback
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addTransactionListener, clearTransactionListeners, commit, createThreadedTx, getDelegate, getGraph, isOpen, open, readWrite, removeTransactionListener, rollback
public AbstractTx(org.apache.tinkerpop.gremlin.structure.Transaction delegate, WrappedFramedGraph<? extends org.apache.tinkerpop.gremlin.structure.Graph> parentGraph)
public void success()
Tx
public void failure()
Tx
public void close()
Tx
close
in interface AutoCloseable
close
in interface Tx
close
in interface WrappedTransaction
close
in class DelegatingTransaction
Copyright © 2018 Syncleus. All rights reserved.