/** * Instantiate a Builder to be able to create an {@link EmbeddedEventStore}. * <p> * The following configurable fields have defaults: * <ul> * <li>The {@link MessageMonitor} is defaulted to a {@link NoOpMessageMonitor}.</li> * <li>The {@code cachedEvents} is defaulted to {@code 10000}.</li> * <li>The {@code fetchDelay} is defaulted to {@code 1000}.</li> * <li>The {@code cleanupDelay} is defaulted to {@code 10000}.</li> * <li>The {@link TimeUnit} is defaulted to {@link TimeUnit#MILLISECONDS}.</li> * <li>The {@link ThreadFactory} is defaulted to {@link AxonThreadFactory} with {@link ThreadGroup} {@link * EmbeddedEventStore#THREAD_GROUP}.</li> * <li>The {@code optimizeEventConsumption} is defaulted to {@code true}.</li> * </ul> * The {@link EventStorageEngine} is a <b>hard requirement</b> and as such should be provided. * * @return a Builder to be able to create a {@link EmbeddedEventStore} */ public static Builder builder() { return new Builder(); }
/** * Instantiate a Builder to be able to create an {@link EmbeddedEventStore}. * <p> * The following configurable fields have defaults: * <ul> * <li>The {@link MessageMonitor} is defaulted to a {@link NoOpMessageMonitor}.</li> * <li>The {@code cachedEvents} is defaulted to {@code 10000}.</li> * <li>The {@code fetchDelay} is defaulted to {@code 1000}.</li> * <li>The {@code cleanupDelay} is defaulted to {@code 10000}.</li> * <li>The {@link TimeUnit} is defaulted to {@link TimeUnit#MILLISECONDS}.</li> * <li>The {@link ThreadFactory} is defaulted to {@link AxonThreadFactory} with {@link ThreadGroup} {@link * EmbeddedEventStore#THREAD_GROUP}.</li> * <li>The {@code optimizeEventConsumption} is defaulted to {@code true}.</li> * </ul> * The {@link EventStorageEngine} is a <b>hard requirement</b> and as such should be provided. * * @return a Builder to be able to create a {@link EmbeddedEventStore} */ public static Builder builder() { return new Builder(); }