org.axonframework.commandhandling
Interface RollbackConfiguration

All Known Implementing Classes:
RollbackOnAllExceptionsConfiguration, RollbackOnUncheckedExceptionConfiguration

public interface RollbackConfiguration

The RollbackConfiguration defines when a UnitOfWork should be rolled back when the command handler or any interceptors reported a failure. This decision will only impact the UnitOfWork (and potentially any transactions attached to it), the CommandCallback.onFailure(Throwable) will always be called.

Since:
1.1
Author:
Martin Tilma

Method Summary
 boolean rollBackOn(Throwable throwable)
          Decides whether the given throwable should trigger a rollback.
 

Method Detail

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, otherwise false


Copyright © 2010-2016. All Rights Reserved.