public interface RequiresNewController
This object may increment identity values efficiently in a REQUIRES_NEW transaction.
The implementation class must be thread safe.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
RequiresNewController.Callback<R>
A callback that is executed in a REQUIRES_NEW transaction.
|
| Modifier and Type | Method and Description |
|---|---|
default <R> R |
requiresNew(RequiresNewController.Callback<R> callback)
Executes a REQUIRES_NEW transaction.
|
default <R> R requiresNew(RequiresNewController.Callback<R> callback) throws java.lang.Throwable
R - the result typecallback - the callback that is executed in a REQUIRES_NEW transactionDomaNullPointerException - if {@code callback} is nulljava.lang.Throwable - thrown, if any exception is thrown in the{@code callback} execution