Interface RequiresNewController


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 Classes
    Modifier and Type
    Interface
    Description
    static interface 
    A callback that is executed in a REQUIRES_NEW transaction.
  • Method Summary

    Modifier and Type
    Method
    Description
    default <R> R
    Executes a REQUIRES_NEW transaction.
  • Method Details

    • requiresNew

      default <R> R requiresNew(RequiresNewController.Callback<R> callback) throws Throwable
      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} is null
      Throwable - thrown, if any exception is thrown in the{@code callback} execution