public class GrpcTransformationStream extends Object implements EventTransformationService.TransformationStream
| Constructor and Description |
|---|
GrpcTransformationStream(String transformationId,
io.grpc.stub.StreamObserver<TransformRequest> requestStreamObserver,
Consumer<Consumer<Long>> ackListenerRegistration,
Consumer<Consumer<Throwable>> onCompleteRegistration) |
| Modifier and Type | Method and Description |
|---|---|
void |
complete()
Completes the stream.
|
CompletableFuture<Void> |
deleteEvent(long token,
long sequence)
Registers the request to delete the event with the specified token.
|
void |
onCompletedByServer(Consumer<Throwable> onCompleted)
Resister a callback function that is invoked when the stream is completed by Axon Server.
|
CompletableFuture<Void> |
replaceEvent(long token,
Event event,
long sequence)
Registers the request to replace the event with the specified token.
|
public CompletableFuture<Void> deleteEvent(long token, long sequence)
EventTransformationService.TransformationStreamdeleteEvent in interface EventTransformationService.TransformationStreamtoken - the token of the event to be deletedsequence - the expected last sequence of the transformation, used to check that no change request
before this one has been lostCompletableFuture that completes when the request has been received by Axon Server.public CompletableFuture<Void> replaceEvent(long token, Event event, long sequence)
EventTransformationService.TransformationStreamreplaceEvent in interface EventTransformationService.TransformationStreamtoken - the token of the event to be replacedevent - the new version of the event, to be used as a replacement for the original onesequence - the expected last sequence of the transformation, used to check that no change request
before this one has been lostCompletableFuture that completes when the request has been received by Axon Server.public void complete()
EventTransformationService.TransformationStreamcomplete in interface EventTransformationService.TransformationStreampublic void onCompletedByServer(Consumer<Throwable> onCompleted)
EventTransformationService.TransformationStreamonCompletedByServer in interface EventTransformationService.TransformationStreamonCompleted - the callback function invoked when the stream is completed by Axon Server.Copyright © 2020–2023 AxonIQ BV. All rights reserved.