Class AggregateSnapshotter.Builder

java.lang.Object
org.axonframework.eventsourcing.AbstractSnapshotter.Builder
org.axonframework.eventsourcing.AggregateSnapshotter.Builder
Direct Known Subclasses:
SpringAggregateSnapshotter.Builder
Enclosing class:
AggregateSnapshotter

public static class AggregateSnapshotter.Builder extends AbstractSnapshotter.Builder
Builder class to instantiate a AggregateSnapshotter.

The Executor is defaulted to an DirectExecutor.INSTANCE, the TransactionManager defaults to a NoTransactionManager and the SpanFactory defaults to a NoOpSpanFactory. Additionally, this Builder has convenience functions to default the ParameterResolverFactory and HandlerDefinition based on instances of these available on the classpath in case these are not provided (respectively buildParameterResolverFactory() and buildHandlerDefinition()). Upon instantiation of a AggregateSnapshotter, it is recommended to use these function to set those fields.

The EventStore is a hard requirement and as such should be provided.

See Also: