Class RuntimeProperties.Builder
java.lang.Object
org.jgroups.raft.configuration.RuntimeProperties.Builder
- All Implemented Interfaces:
RuntimeProperties.ConfigurationBuilder<RuntimeProperties, RuntimeProperties.Builder>
- Enclosing interface:
RuntimeProperties
public static class RuntimeProperties.Builder
extends Object
implements RuntimeProperties.ConfigurationBuilder<RuntimeProperties, RuntimeProperties.Builder>
-
Method Summary
Modifier and TypeMethodDescriptionapply(Consumer<RuntimeProperties.Builder> function) Apply the function to this builder.build()Build and return the immutable configuration.Associate the given value with the specified key.Remove the value associated with the specified key.
-
Method Details
-
with
Description copied from interface:RuntimeProperties.ConfigurationBuilderAssociate the given value with the specified key.- Specified by:
within interfaceRuntimeProperties.ConfigurationBuilder<RuntimeProperties, RuntimeProperties.Builder>- Parameters:
key- the keyvalue- the value- Returns:
- this builder object so methods can be chained together; never null
-
without
Description copied from interface:RuntimeProperties.ConfigurationBuilderRemove the value associated with the specified key.- Specified by:
withoutin interfaceRuntimeProperties.ConfigurationBuilder<RuntimeProperties, RuntimeProperties.Builder>- Parameters:
key- the key- Returns:
- this builder object so methods can be chained together; never null
-
apply
Description copied from interface:RuntimeProperties.ConfigurationBuilderApply the function to this builder.- Specified by:
applyin interfaceRuntimeProperties.ConfigurationBuilder<RuntimeProperties, RuntimeProperties.Builder>- Parameters:
function- the predefined field for the key- Returns:
- this builder object so methods can be chained together; never null
-
build
Description copied from interface:RuntimeProperties.ConfigurationBuilderBuild and return the immutable configuration.- Specified by:
buildin interfaceRuntimeProperties.ConfigurationBuilder<RuntimeProperties, RuntimeProperties.Builder>- Returns:
- the immutable configuration; never null
-