/** * Creates a new Builder for this class. * * @return The created Builder. */ public static Builder builder() { return new Builder(); }
/** * Gets a default set of configuration values, in absence of any real configuration. * These configuration values are the default ones from all component configurations, except that it will * create only one container to host segments. */ public static ServiceBuilderConfig getDefaultConfig() { // All component configs should have defaults built-in, so no need to override them here. return new Builder() .include(ServiceConfig.builder().with(ServiceConfig.CONTAINER_COUNT, 1)) .build(); }
/** * Creates a new instance of this class containing a copy of the existing configuration. * * @return A new instance of this class. */ public Builder makeCopy() { return new Builder().include(this.properties); }