Interface RollbackConfiguration

All Known Implementing Classes:
RollbackConfigurationType

public interface RollbackConfiguration
The RollbackConfiguration defines if a Unit of Work should be rolled back when an exception is raised during the processing of a Message.

Note that the Unit of Work will always throw any exceptions raised during processing, regardless of whether or not the Unit of Work is rolled back.

Since:
1.1
Author:
Martin Tilma
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    rollBackOn(Throwable throwable)
    Decides whether the given throwable should trigger a rollback.
  • Method Details

    • rollBackOn

      boolean rollBackOn(Throwable throwable)
      Decides whether the given throwable should trigger a rollback.
      Parameters:
      throwable - the Throwable to evaluate
      Returns:
      true if the UnitOfWork should be rolled back, false otherwise