/** * 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 { assertNonNull(connectionProvider, "The ConnectionProvider is a hard requirement and should be provided"); assertNonNull(serializer, "The Serializer is a hard requirement and should be provided"); assertNodeId(nodeId, "The nodeId is a hard requirement and should be provided"); }
/** * Sets the {@code nodeId} to identify ownership of the tokens. Defaults to the name of the managed bean for * the runtime system of the Java virtual machine * * @param nodeId the id as a {@link String} to identify ownership of the tokens * @return the current Builder instance, for fluent interfacing */ public Builder nodeId(String nodeId) { assertNodeId(nodeId, "The nodeId may not be null or empty"); this.nodeId = nodeId; return this; }
/** * Sets the {@code nodeId} to identify ownership of the tokens. Defaults to the name of the managed bean for * the runtime system of the Java virtual machine * * @param nodeId the id as a {@link String} to identify ownership of the tokens * @return the current Builder instance, for fluent interfacing */ public Builder nodeId(String nodeId) { assertNodeId(nodeId, "The nodeId may not be null or empty"); this.nodeId = nodeId; 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 { assertNonNull(connectionProvider, "The ConnectionProvider is a hard requirement and should be provided"); assertNonNull(serializer, "The Serializer is a hard requirement and should be provided"); assertNodeId(nodeId, "The nodeId is a hard requirement and should be provided"); }