public class GrpcEventTransformationService extends Object implements EventTransformationService
EventTransformationService.TransformationStream| Constructor and Description |
|---|
GrpcEventTransformationService(AxonServerManagedChannel axonServerManagedChannel) |
GrpcEventTransformationService(EventTransformationServiceGrpc.EventTransformationServiceStub stub) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
cancel(String transformationId)
Requests to AxonServer to cancel the transformation with the specified identifier.
|
CompletableFuture<String> |
newTransformation(String description)
Creates a new transformation.
|
CompletableFuture<Void> |
startApplying(String transformationId,
Long sequence)
Requests to AxonServer to apply the transformation with the specified identifier.
|
CompletableFuture<Void> |
startCompacting()
Requests to AxonServer to compact the event store.
|
CompletableFuture<EventTransformation> |
transformationById(String id)
Returns the Event Transformations with the specified id.
|
CompletableFuture<Iterable<EventTransformation>> |
transformations()
Returns all the existing Event Transformations.
|
EventTransformationService.TransformationStream |
transformationStream(String transformationId)
Opens a
EventTransformationService.TransformationStream towards the transformation, that can be used to register the required
changes. |
public GrpcEventTransformationService(AxonServerManagedChannel axonServerManagedChannel)
public GrpcEventTransformationService(EventTransformationServiceGrpc.EventTransformationServiceStub stub)
public CompletableFuture<Iterable<EventTransformation>> transformations()
EventTransformationServicetransformations in interface EventTransformationServiceCompletableFuture of the Event Transformationspublic CompletableFuture<EventTransformation> transformationById(String id)
EventTransformationServicetransformationById in interface EventTransformationServiceid - the id of the EventTransformation to be returned.CompletableFuture of the EventTransformation with the specified id.public CompletableFuture<String> newTransformation(String description)
EventTransformationServicenewTransformation in interface EventTransformationServicedescription - the description of the transformation to create.CompletableFuture of the identifier of the newly created transformation.public EventTransformationService.TransformationStream transformationStream(String transformationId)
EventTransformationServiceEventTransformationService.TransformationStream towards the transformation, that can be used to register the required
changes.transformationStream in interface EventTransformationServicetransformationId - the identifier of the transformationEventTransformationService.TransformationStreampublic CompletableFuture<Void> startApplying(String transformationId, Long sequence)
EventTransformationServicestartApplying in interface EventTransformationServicetransformationId - the identifier of the transformation to be appliedsequence - the expected last sequence of the transformation, used to check that no change request
has been lostCompletableFuture that completes when the request has been received by Axon Server.public CompletableFuture<Void> cancel(String transformationId)
EventTransformationServicecancel in interface EventTransformationServicetransformationId - the identifier of the transformation to be cancelledCompletableFuture that completes when the request has been received by Axon Server.public CompletableFuture<Void> startCompacting()
EventTransformationServicestartCompacting in interface EventTransformationServiceCompletableFuture that completes when the request has been received by Axon Server.Copyright © 2020–2023 AxonIQ BV. All rights reserved.