public class TransformationStreamAppender extends Object implements Appender
Appender implementation that uses the EventTransformationService.TransformationStream to interact with Axon Server| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Long> |
complete()
Returns a
CompletableFuture that completes when all the change requests have been appended. |
CompletableFuture<Appender> |
deleteEvent(long token)
Appends to the transformation the request to delete the event with the given token.
|
CompletableFuture<Appender> |
replaceEvent(long token,
Event replacement)
Appends to the transformation the request to replace the event with the given token.
|
public CompletableFuture<Appender> deleteEvent(long token)
AppenderdeleteEvent in interface Appendertoken - the token of the event to be deletedCompletableFuture of the Appender, used for compositionpublic CompletableFuture<Appender> replaceEvent(long token, Event replacement)
AppenderreplaceEvent in interface Appendertoken - the token of the event to be replacedreplacement - the new event used to replace the original oneCompletableFuture of the Appender, used for compositionpublic CompletableFuture<Long> complete()
CompletableFuture that completes when all the change requests have been appended. The
CompletableFuture will contain the last sequence of the transformation after last request has been
appended.CompletableFuture that completes when all the change requests have been appended, containing
the updated last sequence of the event transformation.Copyright © 2020–2023 AxonIQ BV. All rights reserved.