Interface ActiveTransformation

  • All Known Implementing Classes:
    DefaultActiveTransformation

    public interface ActiveTransformation
    Class responsible to interact with the active transformation.
    Since:
    2023.1.0
    Author:
    Sara Pellegrini
    • Method Detail

      • startApplying

        CompletableFuture<EventTransformation> startApplying()
        Requests the transformation to be applied. After this method is invoked, it will not be possible to cancel the transformation or to register new changes in it. Axon Server will asynchronously apply the transformation to the event store, making the changes effective. The returned CompletableFuture completes when the request to start applying has been received form AS, it does not wait the apply process is completed. Depending on the number of transformation actions contained in the transformation, the apply process can take a long time before to be completed.
        Returns:
        a CompletableFuture of the Event Transformation, that completes only after the start applying request has been received by AS.
      • cancel

        CompletableFuture<EventTransformation> cancel()
        Cancels the active transformation. After this method is invoked, it will not be possible to apply the transformation or to register new changes in it.
        Returns:
        a CompletableFuture of the Event Transformation, that completes only after the cancel request has been received by AS.