Class RemoteServerConfigurationBuilder
- java.lang.Object
-
- org.infinispan.persistence.rest.configuration.RemoteServerConfigurationBuilder
-
- All Implemented Interfaces:
BaseConfigurationInfo
,Builder<RemoteServerConfiguration>
,ConfigurationBuilderInfo
public class RemoteServerConfigurationBuilder extends Object implements ConfigurationBuilderInfo, Builder<RemoteServerConfiguration>
- Since:
- 10.0
-
-
Constructor Summary
Constructors Constructor Description RemoteServerConfigurationBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.infinispan.commons.configuration.attributes.AttributeSet
attributes()
RemoteServerConfiguration
create()
Create the configuration beanorg.infinispan.commons.configuration.elements.ElementDefinition
getElementDefinition()
RemoteServerConfigurationBuilder
host(String host)
RemoteServerConfigurationBuilder
port(int port)
Builder<?>
read(RemoteServerConfiguration template)
Reads the configuration from an already created configuration bean into this builder.void
validate()
Validate the data in this builder before building the configuration bean-
Methods inherited from interface org.infinispan.commons.configuration.ConfigurationBuilderInfo
getBuilderInfo, getChildrenInfo, getNewBuilderInfo
-
-
-
-
Method Detail
-
getElementDefinition
public org.infinispan.commons.configuration.elements.ElementDefinition getElementDefinition()
- Specified by:
getElementDefinition
in interfaceBaseConfigurationInfo
- Returns:
- the
ElementDefinition
of the configuration.
-
attributes
public org.infinispan.commons.configuration.attributes.AttributeSet attributes()
- Specified by:
attributes
in interfaceBaseConfigurationInfo
- Returns:
- the
AttributeSet
declared by the configuration.
-
host
public RemoteServerConfigurationBuilder host(String host)
-
port
public RemoteServerConfigurationBuilder port(int port)
-
create
public RemoteServerConfiguration create()
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<RemoteServerConfiguration>
- Returns:
-
read
public Builder<?> read(RemoteServerConfiguration template)
Description copied from interface:Builder
Reads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
read
in interfaceBuilder<RemoteServerConfiguration>
- Parameters:
template
- the configuration from which to "clone" this config if needed.
-
validate
public void validate()
Description copied from interface:Builder
Validate the data in this builder before building the configuration bean- Specified by:
validate
in interfaceBuilder<RemoteServerConfiguration>
-
-