/** * 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 */ protected void validate() throws AxonConfigurationException { assertEventProcessorName(name, "The EventProcessor name is a hard requirement and should be provided"); assertNonNull(eventHandlerInvoker, "The EventHandlerInvoker is a hard requirement and should be provided"); assertNonNull(rollbackConfiguration, "The RollbackConfiguration is a hard requirement and should be provided"); }
/** * Sets the {@code name} of this {@link EventProcessor} implementation. * * @param name a {@link String} defining this {@link EventProcessor} implementation * @return the current Builder instance, for fluent interfacing */ public Builder name(String name) { assertEventProcessorName(name, "The EventProcessor name may not be null or empty"); this.name = name; return this; }
/** * Sets the {@code name} of this {@link EventProcessor} implementation. * * @param name a {@link String} defining this {@link EventProcessor} implementation * @return the current Builder instance, for fluent interfacing */ public Builder name(String name) { assertEventProcessorName(name, "The EventProcessor name may not be null or empty"); this.name = name; return this; }
/** * 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 */ protected void validate() throws AxonConfigurationException { assertEventProcessorName(name, "The EventProcessor name is a hard requirement and should be provided"); assertNonNull(eventHandlerInvoker, "The EventHandlerInvoker is a hard requirement and should be provided"); assertNonNull(rollbackConfiguration, "The RollbackConfiguration is a hard requirement and should be provided"); }