Annotation Type TransactionCompleted


  • @Retention(RUNTIME)
    @Target(METHOD)
    public @interface TransactionCompleted
    This annotation should be used on methods that need to be notified when the cache is called to participate in a transaction and the transaction completes, either with a commit or a rollback.

    Methods annotated with this annotation should accept a single parameter, a TransactionCompletedEvent otherwise a IncorrectListenerException will be thrown when registering your listener.

    Note that methods marked with this annotation will only be fired after the fact, i.e., your method will never be called with Event.isPre() being set to true.

    Any exceptions thrown by the listener will abort the call. Any other listeners not yet called will not be called, and any transactions in progress will be rolled back.

    Since:
    4.0
    Author:
    Manik Surtani
    See Also:
    Listener