Class DataConfigurationBuilder
- java.lang.Object
-
- org.infinispan.persistence.sifs.configuration.DataConfigurationBuilder
-
- All Implemented Interfaces:
BaseConfigurationInfo
,Builder<DataConfiguration>
,ConfigurationBuilderInfo
public class DataConfigurationBuilder extends Object implements ConfigurationBuilderInfo, Builder<DataConfiguration>
-
-
Constructor Summary
Constructors Constructor Description DataConfigurationBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.infinispan.commons.configuration.attributes.AttributeSet
attributes()
DataConfiguration
create()
Create the configuration beanDataConfigurationBuilder
dataLocation(String dataLocation)
org.infinispan.commons.configuration.elements.ElementDefinition
getElementDefinition()
DataConfigurationBuilder
maxFileSize(int maxFileSize)
Builder<?>
read(DataConfiguration template)
Reads the configuration from an already created configuration bean into this builder.DataConfigurationBuilder
syncWrites(boolean syncWrites)
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.
-
dataLocation
public DataConfigurationBuilder dataLocation(String dataLocation)
-
maxFileSize
public DataConfigurationBuilder maxFileSize(int maxFileSize)
-
syncWrites
public DataConfigurationBuilder syncWrites(boolean syncWrites)
-
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<DataConfiguration>
-
create
public DataConfiguration create()
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<DataConfiguration>
- Returns:
-
read
public Builder<?> read(DataConfiguration 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<DataConfiguration>
- Parameters:
template
- the configuration from which to "clone" this config if needed.
-
-