Class AggregateBasedAxonServerEventStorageEngine

java.lang.Object
io.axoniq.framework.axonserver.connector.event.AggregateBasedAxonServerEventStorageEngine
All Implemented Interfaces:
DescribableComponent, EventStorageEngine

public class AggregateBasedAxonServerEventStorageEngine extends Object implements EventStorageEngine
Event Storage Engine implementation that uses the aggregate-oriented APIs of Axon Server, allowing it to interact with versions that do not have DCB support.
Since:
5.0.0
Author:
Allard Buijze
  • Constructor Details

    • AggregateBasedAxonServerEventStorageEngine

      public AggregateBasedAxonServerEventStorageEngine(io.axoniq.axonserver.connector.AxonServerConnection connection, EventConverter converter)
      Constructs an AggregateBasedAxonServerEventStorageEngine with the given connection and converter, using EventTypeResolver.DEFAULT to resolve MessageTypes when reading events back from Axon Server.
      Parameters:
      connection - the backing connection to Axon Server
      converter - the converter to use to serialize payloads to bytes
    • AggregateBasedAxonServerEventStorageEngine

      public AggregateBasedAxonServerEventStorageEngine(io.axoniq.axonserver.connector.AxonServerConnection connection, EventConverter converter, EventTypeResolver eventTypeResolver)
      Constructs an AggregateBasedAxonServerEventStorageEngine with the given connection, converter, and eventTypeResolver.
      Parameters:
      connection - the backing connection to Axon Server
      converter - the converter to use to serialize payloads to bytes
      eventTypeResolver - the resolver used to construct a MessageType from the event name and version stored in Axon Server, handling missing or empty versions for legacy events
  • Method Details