Class TransformationStreamAppender
- java.lang.Object
-
- io.axoniq.axonserver.connector.event.transformation.impl.TransformationStreamAppender
-
- All Implemented Interfaces:
Appender
public class TransformationStreamAppender extends Object implements Appender
Appenderimplementation that uses theEventTransformationService.TransformationStreamto interact with Axon Server- Since:
- 2023.1.0
- Author:
- Sara Pellegrini
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<Long>complete()Returns aCompletableFuturethat 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.
-
-
-
Method Detail
-
deleteEvent
public CompletableFuture<Appender> deleteEvent(long token)
Description copied from interface:AppenderAppends to the transformation the request to delete the event with the given token.- Specified by:
deleteEventin interfaceAppender- Parameters:
token- the token of the event to be deleted- Returns:
- a
CompletableFutureof the Appender, used for composition
-
replaceEvent
public CompletableFuture<Appender> replaceEvent(long token, Event replacement)
Description copied from interface:AppenderAppends to the transformation the request to replace the event with the given token.- Specified by:
replaceEventin interfaceAppender- Parameters:
token- the token of the event to be replacedreplacement- the new event used to replace the original one- Returns:
- a
CompletableFutureof the Appender, used for composition
-
complete
public CompletableFuture<Long> complete()
Returns aCompletableFuturethat completes when all the change requests have been appended. TheCompletableFuturewill contain the last sequence of the transformation after last request has been appended.- Returns:
- a
CompletableFuturethat completes when all the change requests have been appended, containing the updated last sequence of the event transformation.
-
-