/** * Instantiate a Builder to be able to create a {@link SubscribingEventProcessor}. * <p> * The {@link RollbackConfigurationType} defaults to a {@link RollbackConfigurationType#ANY_THROWABLE}, the * {@link ErrorHandler} is defaulted to a {@link PropagatingErrorHandler}, the {@link MessageMonitor} defaults to a * {@link NoOpMessageMonitor} and the {@link EventProcessingStrategy} defaults to a * {@link DirectEventProcessingStrategy}. The Event Processor {@code name}, {@link EventHandlerInvoker} and * {@link SubscribableMessageSource} are <b>hard requirements</b> and as such should be provided. * * @return a Builder to be able to create a {@link SubscribingEventProcessor} */ public static Builder builder() { return new Builder(); }
/** * Instantiate a Builder to be able to create a {@link SubscribingEventProcessor}. * <p> * The {@link RollbackConfigurationType} defaults to a {@link RollbackConfigurationType#ANY_THROWABLE}, the * {@link ErrorHandler} is defaulted to a {@link PropagatingErrorHandler}, the {@link MessageMonitor} defaults to a * {@link NoOpMessageMonitor} and the {@link EventProcessingStrategy} defaults to a * {@link DirectEventProcessingStrategy}. The Event Processor {@code name}, {@link EventHandlerInvoker} and * {@link SubscribableMessageSource} are <b>hard requirements</b> and as such should be provided. * * @return a Builder to be able to create a {@link SubscribingEventProcessor} */ public static Builder builder() { return new Builder(); }