public class EventTransformationChannelImpl extends AbstractAxonServerChannel<Void> implements EventTransformationChannel
EventTransformationChannel that uses the EventTransformationService to interact
with Axon Server| Constructor and Description |
|---|
EventTransformationChannelImpl(ClientIdentification clientIdentification,
ScheduledExecutorService executor,
AxonServerManagedChannel axonServerManagedChannel)
Constructs an instance based on a
GrpcEventTransformationService. |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<ActiveTransformation> |
activeTransformation()
Returns the completable future of the active transformation.
|
void |
connect()
Connect this channel with AxonServer.
|
void |
disconnect()
Disconnect this channel from AxonServer.
|
boolean |
isReady()
Validate whether this channel has all required streams connected with AxonServer.
|
CompletableFuture<ActiveTransformation> |
newTransformation(String description)
Starts a new transformation to append events change actions.
|
void |
reconnect()
Reconnect this channel with AxonServer.
|
CompletableFuture<Void> |
startCompacting()
Starts the compaction of the event store.
|
CompletableFuture<Iterable<EventTransformation>> |
transformations()
Returns the completable future of the all transformations.
|
processAck, scheduleImmediateReconnect, scheduleReconnect, sendInstructionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittransformpublic EventTransformationChannelImpl(ClientIdentification clientIdentification, ScheduledExecutorService executor, AxonServerManagedChannel axonServerManagedChannel)
GrpcEventTransformationService.clientIdentification - the identification of the clientexecutor - a ScheduledExecutorService used to schedule reconnectionsaxonServerManagedChannel - the AxonServerManagedChannel used to connect to AxonServerpublic CompletableFuture<Iterable<EventTransformation>> transformations()
EventTransformationChanneltransformations in interface EventTransformationChannelpublic CompletableFuture<ActiveTransformation> activeTransformation()
EventTransformationChannelactiveTransformation in interface EventTransformationChannelpublic CompletableFuture<ActiveTransformation> newTransformation(String description)
EventTransformationChannelnewTransformation in interface EventTransformationChanneldescription - the description of the transformation to start.public CompletableFuture<Void> startCompacting()
EventTransformationChannelstartCompacting in interface EventTransformationChannelpublic void connect()
AbstractAxonServerChannelconnect in class AbstractAxonServerChannel<Void>public void reconnect()
AbstractAxonServerChannelreconnect in class AbstractAxonServerChannel<Void>public void disconnect()
AbstractAxonServerChanneldisconnect in class AbstractAxonServerChannel<Void>public boolean isReady()
AbstractAxonServerChanneltrue.isReady in class AbstractAxonServerChannel<Void>true if this channel is connected with AxonServer or does not require any active connections,
false otherwiseCopyright © 2020–2023 AxonIQ BV. All rights reserved.