/** * Instantiate a {@link AbstractEventStorageEngine} based on the fields contained in the {@link Builder}. * * @param builder the {@link Builder} used to instantiate a {@link AbstractEventStorageEngine} instance */ protected AbstractEventStorageEngine(Builder builder) { builder.validate(); this.snapshotSerializer = builder.snapshotSerializer; this.upcasterChain = builder.upcasterChain; this.persistenceExceptionResolver = builder.persistenceExceptionResolver; this.eventSerializer = builder.eventSerializer; this.snapshotFilter = builder.snapshotFilter; }
/** * Validates whether the fields contained in this Builder are set accordingly. * * @throws AxonConfigurationException if one field is asserted to be incorrect according to the Builder's * specifications */ @Override protected void validate() throws AxonConfigurationException { super.validate(); } }
/** * Validates whether the fields contained in this Builder are set accordingly. * * @throws AxonConfigurationException if one field is asserted to be incorrect according to the Builder's * specifications */ @Override protected void validate() throws AxonConfigurationException { super.validate(); } }
/** * Instantiate a {@link AbstractEventStorageEngine} based on the fields contained in the {@link Builder}. * * @param builder the {@link Builder} used to instantiate a {@link AbstractEventStorageEngine} instance */ protected AbstractEventStorageEngine(Builder builder) { builder.validate(); this.snapshotSerializer = builder.snapshotSerializer; this.upcasterChain = builder.upcasterChain; this.persistenceExceptionResolver = builder.persistenceExceptionResolver; this.eventSerializer = builder.eventSerializer; this.snapshotFilter = builder.snapshotFilter; }