Interface AppendEventsTransaction
-
- All Known Implementing Classes:
AppendEventsTransactionImpl
public interface AppendEventsTransactionInterface providing operations to interact with a Transaction to append events onto the Event Store.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AppendEventsTransactionappendEvent(Event event)Append the given event to be committed as part of this transaction.CompletableFuture<ConfirmationWithConsistencyMarker>commit()Commit this transaction, appending all registered events into the Event Store.voidrollback()Rolls back the transaction.
-
-
-
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.
-
-