|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransactionBuilder
A builder for controlling certain behaviors of a transaction.
Methods that return TransactionBuilder
returns a new instance
with the updated configuration that the method call modified.
When the behavior is as desired a call to begin()
will
begin the transaction and return a Transaction
.
// To begin a transaction with default behavior Transaction tx = graphDb.tx().begin(); // To begin a transaction with relaxed force Transaction tx = graphDb.tx().relaxed().begin(); // To have relaxed force optionally set by a condition TransactionBuilder txBuilder = graphDb.tx(); if ( condition ) { txBuilder = txBuilder.relaxed(); } Transaction tx = txBuilder.begin();
Method Summary | |
---|---|
Transaction |
begin()
Starts a new transaction and associates it with the current thread. |
TransactionBuilder |
unforced()
Relaxes the forcing constraint of the logical logs for this transaction so that the data is written out, but not forced to disk. |
Method Detail |
---|
Transaction begin()
TransactionBuilder unforced()
TransactionBuilder
instance with relaxed force set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |