Interface TransactionTask<T,​E extends java.lang.Exception>

  • All Known Subinterfaces:
    RuntimeTransactionTask<T>

    public interface TransactionTask<T,​E extends java.lang.Exception>
    [TO COME: Interface Introduction].

    It is important that the TransactionTask does not modify any of its input state in any non-idempotent way. If this task gets retried, and if you modified your input, then the second try might not do the right thing. For example: if you are passed a list of objects and at the end of the TransactionTask, you clear the list. If your task gets retried it will have no work to do, because the list was cleared.

    • Method Detail

      • execute

        T execute​(Transaction transaction)
           throws E extends java.lang.Exception
        Throws:
        E extends java.lang.Exception