Interface DcbEventChannel.AppendEventsTransaction
-
- Enclosing interface:
- DcbEventChannel
public static interface DcbEventChannel.AppendEventsTransactionProvides operations to interact with a Transaction to append events and a condition onto the Event Store.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description DcbEventChannel.AppendEventsTransactionappend(TaggedEvent taggedEvent)Appends thistaggedEventto this transaction.default DcbEventChannel.AppendEventsTransactionappendAll(Collection<TaggedEvent> taggedEvents)Appends all events from the collection oftaggedEventsto this transactionCompletableFuture<AppendEventsResponse>commit()Commits this Transaction.voidrollback()Rolls back the transaction.
-
-
-
Method Detail
-
append
DcbEventChannel.AppendEventsTransaction append(TaggedEvent taggedEvent)
Appends thistaggedEventto this transaction.- Parameters:
taggedEvent- the event to be appended- Returns:
- this Transaction for fluency
-
appendAll
default DcbEventChannel.AppendEventsTransaction appendAll(Collection<TaggedEvent> taggedEvents)
Appends all events from the collection oftaggedEventsto this transaction- Parameters:
taggedEvents- the collection of events to be appended- Returns:
- this Transaction for fluency
-
commit
CompletableFuture<AppendEventsResponse> commit()
Commits this Transaction.- Returns:
- the future that completes once the Axon Server commits this Transaction, containing the append events response as a result.
-
rollback
void rollback()
Rolls back the transaction.
-
-