/** * Instantiate a {@link SimpleDeadlineManager} based on the fields contained in the {@link Builder} to handle the * process around scheduling and triggering a {@link DeadlineMessage}. * <p> * Will assert that the {@link ScopeAwareProvider}, {@link ScheduledExecutorService} and {@link TransactionManager} * are not {@code null}, and will throw an {@link AxonConfigurationException} if either of them is {@code null}. * * @param builder the {@link Builder} used to instantiate a {@link SimpleDeadlineManager} instance */ protected SimpleDeadlineManager(Builder builder) { builder.validate(); this.scopeAwareProvider = builder.scopeAwareProvider; this.scheduledExecutorService = builder.scheduledExecutorService; this.transactionManager = builder.transactionManager; }
/** * Instantiate a {@link SimpleDeadlineManager} based on the fields contained in the {@link Builder} to handle the * process around scheduling and triggering a {@link DeadlineMessage}. * <p> * Will assert that the {@link ScopeAwareProvider}, {@link ScheduledExecutorService} and {@link TransactionManager} * are not {@code null}, and will throw an {@link AxonConfigurationException} if either of them is {@code null}. * * @param builder the {@link Builder} used to instantiate a {@link SimpleDeadlineManager} instance */ protected SimpleDeadlineManager(Builder builder) { builder.validate(); this.scopeAwareProvider = builder.scopeAwareProvider; this.scheduledExecutorService = builder.scheduledExecutorService; this.transactionManager = builder.transactionManager; }