Class TransformationStreamAppender

    • Method Detail

      • deleteEvent

        public CompletableFuture<Appender> deleteEvent​(long token)
        Description copied from interface: Appender
        Appends to the transformation the request to delete the event with the given token.
        Specified by:
        deleteEvent in interface Appender
        Parameters:
        token - the token of the event to be deleted
        Returns:
        a CompletableFuture of the Appender, used for composition
      • replaceEvent

        public CompletableFuture<Appender> replaceEvent​(long token,
                                                        Event replacement)
        Description copied from interface: Appender
        Appends to the transformation the request to replace the event with the given token.
        Specified by:
        replaceEvent in interface Appender
        Parameters:
        token - the token of the event to be replaced
        replacement - the new event used to replace the original one
        Returns:
        a CompletableFuture of the Appender, used for composition
      • complete

        public CompletableFuture<Long> complete()
        Returns a 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.
        Returns:
        a CompletableFuture that completes when all the change requests have been appended, containing the updated last sequence of the event transformation.