Skip to content

Commit

Permalink
ITrxManager.runInThreadInheritedTrx
Browse files Browse the repository at this point in the history
  • Loading branch information
teosarca committed Sep 7, 2017
1 parent 9506728 commit a4d7d5a
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,13 @@ interface ITrxRunConfigBuilder
* @see #run(String, boolean, TrxRunnable)
*/
void run(String trxName, TrxRunnable r);

void run(String trxName, Runnable runnable);

default void runInThreadInheritedTrx(final Runnable runnable)
{
run(ITrx.TRXNAME_ThreadInherited, runnable);
}

/**
* Executes the callable object. Same as calling {@link #call(String, boolean, TrxRunnable)} with manageTrx = false. This means that it uses the trx with the the given trxName, creates a savepoint
Expand Down

0 comments on commit a4d7d5a

Please sign in to comment.