Interface RemoteTransaction
- All Superinterfaces:
AutoCloseable,RequestSubmitter,Transaction
A
Transaction interface for remote connections that combine lifecycle management and synchronous submission.
Note: Implementations of this interface are generally NOT thread-safe.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.Transaction
Transaction.CLOSE_BEHAVIOR, Transaction.Exceptions, Transaction.READ_WRITE_BEHAVIOR, Transaction.Status, Transaction.Symbols -
Field Summary
Fields inherited from interface org.apache.tinkerpop.gremlin.structure.Transaction
NO_OP -
Method Summary
Modifier and TypeMethodDescriptionReturns the server-generated transaction ID, ornullif the transaction has not yet been started viaTransaction.begin(Class).Methods inherited from interface org.apache.tinkerpop.gremlin.driver.RequestSubmitter
submit, submit, submitMethods inherited from interface org.apache.tinkerpop.gremlin.structure.Transaction
addTransactionListener, begin, begin, clearTransactionListeners, close, commit, createThreadedTx, isOpen, onClose, onReadWrite, readWrite, removeTransactionListener, rollback
-
Method Details
-
getTransactionId
String getTransactionId()Returns the server-generated transaction ID, ornullif the transaction has not yet been started viaTransaction.begin(Class).- Returns:
- the transaction ID, or null if not yet begun
-