Annotation Type TxConfirm


  • @InterceptorBinding
    @Retention(RUNTIME)
    @Target({TYPE,METHOD})
    public @interface TxConfirm
    Provides a callback handler for confirming any work done within this annotated method (or all methods of the class when annotated at the class level). The callback is used later if the compensation-based transaction is completes successfully.

    The confirmation handler is only registered if the method completes successfully (i.e doesn't throw a RuntimeException, or subclass thereof).

    If the method fails, (i.e. throws a RuntimeException or subclass thereof) it is expected that the method leaves the application in a consistent state as none of the registered handlers will be invoked.

    Author:
    [email protected] 21/03/2013
    • Element Detail

      • value

        Class<? extends ConfirmationHandler> value
        Default:
        org.jboss.narayana.compensations.api.DefaultTxConfirmHandler.class