Interface RemoteTransaction
-
- All Superinterfaces:
AutoCloseable,RequestSubmitter,Transaction
- All Known Implementing Classes:
HttpRemoteTransaction
public interface RemoteTransaction extends Transaction, RequestSubmitter
ATransactioninterface 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetTransactionId()Returns 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, submit
-
Methods inherited from interface org.apache.tinkerpop.gremlin.structure.Transaction
addTransactionListener, begin, begin, clearTransactionListeners, close, commit, createThreadedTx, isOpen, onClose, onReadWrite, open, readWrite, removeTransactionListener, rollback
-
-
-
-
Method Detail
-
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
-
-