Interface AppendEventsTransaction

  • All Known Implementing Classes:
    AppendEventsTransactionImpl

    public interface AppendEventsTransaction
    Interface providing operations to interact with a Transaction to append events onto the Event Store.
    • Method Detail

      • appendEvent

        AppendEventsTransaction appendEvent​(Event event)
        Append the given event to be committed as part of this transaction.
        Parameters:
        event - the event to append
        Returns:
        this instance for fluent interfacing
      • commit

        CompletableFuture<ConfirmationWithConsistencyMarker> commit()
        Commit this transaction, appending all registered events into the Event Store.
        Returns:
        a CompletableFuture resolving the confirmation of the successful processing of the transaction
      • rollback

        void rollback()
        Rolls back the transaction.