public interface InvokerHandler
SessionData, which can also be combined with
transactions| Modifier and Type | Method and Description |
|---|---|
<T> T |
runAs(SessionData sessionData,
java.util.concurrent.Callable<T> callable)
Runs the given
Callable using the given SessionData, within the caller's transaction |
<T> T |
runAsInCurrentOrNewTransaction(SessionData sessionData,
TransactionLevel level,
org.springframework.transaction.support.TransactionCallback<T> callback)
If there is a transaction in the current thread with a compatible transaction level as the given one, runs the
given transaction callback in the current transaction.
|
<T> java.util.concurrent.Future<T> |
runAsInParallelTransaction(SessionData sessionData,
TransactionLevel transactionLevel,
org.springframework.transaction.support.TransactionCallback<T> callback)
Submits a new transaction to be executed in a new thread, with the given
TransactionLevel, within
the context of the given SessionData |
<T> T |
runAsInTransaction(SessionData sessionData,
TransactionLevel transactionLevel,
org.springframework.transaction.support.TransactionCallback<T> callback)
Runs the given
TransactionCallback in a transaction in the current thread, with the given
TransactionLevel, within the context of the given SessionData |
<T> T runAs(SessionData sessionData, java.util.concurrent.Callable<T> callable)
Callable using the given SessionData, within the caller's transaction<T> T runAsInCurrentOrNewTransaction(SessionData sessionData, TransactionLevel level, org.springframework.transaction.support.TransactionCallback<T> callback) throws RetryException
RetryException to force a new
transaction with the given level to be created, so the next time it will be compatibleRetryException - If the current transaction level is not compatible with the given one<T> java.util.concurrent.Future<T> runAsInParallelTransaction(SessionData sessionData, TransactionLevel transactionLevel, org.springframework.transaction.support.TransactionCallback<T> callback)
TransactionLevel, within
the context of the given SessionData<T> T runAsInTransaction(SessionData sessionData, TransactionLevel transactionLevel, org.springframework.transaction.support.TransactionCallback<T> callback)
TransactionCallback in a transaction in the current thread, with the given
TransactionLevel, within the context of the given SessionData