public interface TransactionFun<Result>
Connection's
runTransaction. This can neatly be done inline using a lambda expression.| Modifier and Type | Method and Description |
|---|---|
Result |
Run(Transaction<Result> txn)
The callback invoked (potentially several times) to run your transaction.
|
Result Run(Transaction<Result> txn) throws java.lang.Throwable
txn - The API through which your transaction can navigate and interact with the
object-graph stored by GoshawkDB.java.lang.Throwable - your callback may throw an exception, for example to indicate you wish the
transaction to be aborted.