public interface RequiresNewController
A controller for the transaction whose attribute may be REQUIRES_NEW.
This object may increment identity values efficiently in a REQUIRES_NEW transaction.
The implementation class must be thread safe.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA callback that is executed in a REQUIRES_NEW transaction. -
Method Summary
Modifier and TypeMethodDescriptiondefault <R> RrequiresNew(RequiresNewController.Callback<R> callback) Executes a REQUIRES_NEW transaction.
-
Method Details
-
requiresNew
Executes a REQUIRES_NEW transaction.- Type Parameters:
R- the result type- Parameters:
callback- the callback that is executed in a REQUIRES_NEW transaction- Returns:
- the result
- Throws:
DomaNullPointerException- if {@code callback} isnullThrowable- thrown, if any exception is thrown in the{@code callback} execution
-