public interface ProcedureTransaction
Modifier and Type | Method and Description |
---|---|
void |
failure()
Marks this transaction as failed, which means that it will
unconditionally be rolled back when
Transaction.close() is called. |
void |
terminate()
Marks this transaction as terminated, which means that it will be, much like in the case of failure,
unconditionally rolled back when
Transaction.close() is called. |
void terminate()
Transaction.close()
is called. Once this method has been invoked, it doesn't
matter
if Transaction.success()
is invoked afterwards -- the transaction will still be rolled back.
Additionally, terminating a transaction causes all subsequent operations carried out within that
transaction to throw a TransactionTerminatedException
in the owning thread.
Note that, unlike the other transaction operations, this method can be called from threads other than
the owning thread of the transaction. When this method is called from a different thread,
it signals the owning thread to terminate the transaction and returns immediately.
Calling this method on an already closed transaction has no effect.void failure()
Transaction.close()
is called. Once
this method has been invoked, it doesn't matter if
Transaction.success()
is invoked afterwards -- the transaction will still be
rolled back.
This method is not thread safe.Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.