java.lang.Object
org.neo4j.driver.internal.async.UnmanagedTransaction
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionUnmanagedTransaction
(Connection connection, Consumer<org.neo4j.driver.internal.DatabaseBookmark> bookmarkConsumer, long fetchSize) protected
UnmanagedTransaction
(Connection connection, Consumer<org.neo4j.driver.internal.DatabaseBookmark> bookmarkConsumer, long fetchSize, ResultCursorsHolder resultCursors) -
Method Summary
Modifier and TypeMethodDescriptionbeginAsync
(Set<Bookmark> initialBookmarks, TransactionConfig config, String txType) closeAsync
(boolean commit) Marks transaction as terminated and sendsRESET
message over allocated connection.boolean
isOpen()
void
markTerminated
(Throwable cause)
-
Field Details
-
CANT_COMMIT_COMMITTED_MSG
- See Also:
-
CANT_ROLLBACK_COMMITTED_MSG
- See Also:
-
CANT_COMMIT_ROLLED_BACK_MSG
- See Also:
-
CANT_ROLLBACK_ROLLED_BACK_MSG
- See Also:
-
CANT_COMMIT_ROLLING_BACK_MSG
- See Also:
-
CANT_ROLLBACK_COMMITTING_MSG
- See Also:
-
-
Constructor Details
-
UnmanagedTransaction
public UnmanagedTransaction(Connection connection, Consumer<org.neo4j.driver.internal.DatabaseBookmark> bookmarkConsumer, long fetchSize) -
UnmanagedTransaction
protected UnmanagedTransaction(Connection connection, Consumer<org.neo4j.driver.internal.DatabaseBookmark> bookmarkConsumer, long fetchSize, ResultCursorsHolder resultCursors)
-
-
Method Details
-
beginAsync
public CompletionStage<UnmanagedTransaction> beginAsync(Set<Bookmark> initialBookmarks, TransactionConfig config, String txType) -
closeAsync
-
closeAsync
-
commitAsync
-
rollbackAsync
-
runAsync
-
runRx
-
isOpen
public boolean isOpen() -
markTerminated
-
connection
-
interruptAsync
Marks transaction as terminated and sendsRESET
message over allocated connection.THIS METHOD IS NOT PART OF PUBLIC API. This method may be changed or removed at any moment in time.
- Returns:
RESET
response stage
-