/** * Instantiate a Builder to be able to create a {@link JdbcEventStorageEngine}. * <p> * The following configurable fields have defaults: * <ul> * <li>The snapshot {@link Serializer} defaults to {@link org.axonframework.serialization.xml.XStreamSerializer}.</li> * <li>The {@link EventUpcaster} defaults to an {@link org.axonframework.serialization.upcasting.event.NoOpEventUpcaster}.</li> * <li>The {@link PersistenceExceptionResolver} is defaulted to a {@link JdbcSQLErrorCodesResolver}</li> * <li>The event Serializer defaults to a {@link org.axonframework.serialization.xml.XStreamSerializer}.</li> * <li>The {@code snapshotFilter} defaults to a {@link Predicate} which returns {@code true} regardless.</li> * <li>The {@code batchSize} defaults to an integer of size {@code 100}.</li> * <li>The {@code dataType} is defaulted to the {@code byte[]} type.</li> * <li>The {@link EventSchema} defaults to an {@link EventSchema#EventSchema()} call.</li> * <li>The {@code maxGapOffset} defaults to an integer of size {@code 10000}.</li> * <li>The {@code lowestGlobalSequence} defaults to a long of size {@code 1}.</li> * <li>The {@code gapTimeout} defaults to an integer of size {@code 60000} (1 minute).</li> * <li>The {@code gapCleaningThreshold} defaults to an integer of size {@code 250}.</li> * <li>The {@code extendedGapCheckEnabled} defaults to {@code true}.</li> * </ul> * <p> * The {@link ConnectionProvider} and {@link TransactionManager} are <b>hard requirements</b> and as such should * be provided. * * @return a Builder to be able to create a {@link JdbcEventStorageEngine} */ public static Builder builder() { return new Builder(); }
/** * Instantiate a Builder to be able to create a {@link JdbcEventStorageEngine}. * <p> * The following configurable fields have defaults: * <ul> * <li>The snapshot {@link Serializer} defaults to {@link org.axonframework.serialization.xml.XStreamSerializer}.</li> * <li>The {@link EventUpcaster} defaults to an {@link org.axonframework.serialization.upcasting.event.NoOpEventUpcaster}.</li> * <li>The {@link PersistenceExceptionResolver} is defaulted to a {@link JdbcSQLErrorCodesResolver}</li> * <li>The event Serializer defaults to a {@link org.axonframework.serialization.xml.XStreamSerializer}.</li> * <li>The {@code snapshotFilter} defaults to a {@link Predicate} which returns {@code true} regardless.</li> * <li>The {@code batchSize} defaults to an integer of size {@code 100}.</li> * <li>The {@code dataType} is defaulted to the {@code byte[]} type.</li> * <li>The {@link EventSchema} defaults to an {@link EventSchema#EventSchema()} call.</li> * <li>The {@code maxGapOffset} defaults to an integer of size {@code 10000}.</li> * <li>The {@code lowestGlobalSequence} defaults to a long of size {@code 1}.</li> * <li>The {@code gapTimeout} defaults to an integer of size {@code 60000} (1 minute).</li> * <li>The {@code gapCleaningThreshold} defaults to an integer of size {@code 250}.</li> * <li>The {@code extendedGapCheckEnabled} defaults to {@code true}.</li> * </ul> * <p> * The {@link ConnectionProvider} and {@link TransactionManager} are <b>hard requirements</b> and as such should * be provided. * * @return a Builder to be able to create a {@link JdbcEventStorageEngine} */ public static Builder builder() { return new Builder(); }