public class AppendEventsTransactionImpl extends Object implements AppendEventsTransaction
AppendEventsTransaction used to append events to the Event Store.| Constructor and Description |
|---|
AppendEventsTransactionImpl(io.grpc.stub.StreamObserver<Event> stream,
CompletableFuture<Confirmation> result)
Constructs a
AppendEventsTransactionImpl used to append events to the Event Store. |
| Modifier and Type | Method and Description |
|---|---|
AppendEventsTransaction |
appendEvent(Event event)
Append the given event to be committed as part of this transaction.
|
CompletableFuture<Confirmation> |
commit()
Commit this transaction, appending all registered events into the Event Store.
|
void |
rollback()
Rolls back the transaction.
|
public AppendEventsTransactionImpl(io.grpc.stub.StreamObserver<Event> stream, CompletableFuture<Confirmation> result)
AppendEventsTransactionImpl used to append events to the Event Store.stream - the StreamObserver of Event instances which should be appendedresult - a CompletableFuture resolving the Confirmation of the successful processing of this
transactionpublic AppendEventsTransaction appendEvent(Event event)
AppendEventsTransactionappendEvent in interface AppendEventsTransactionevent - the event to appendpublic CompletableFuture<Confirmation> commit()
AppendEventsTransactioncommit in interface AppendEventsTransactionpublic void rollback()
AppendEventsTransactionrollback in interface AppendEventsTransactionCopyright © 2020–2022 AxonIQ BV. All rights reserved.