Class IndexConfigurationBuilder
- java.lang.Object
-
- org.infinispan.persistence.sifs.configuration.IndexConfigurationBuilder
-
- All Implemented Interfaces:
BaseConfigurationInfo
,Builder<IndexConfiguration>
,ConfigurationBuilderInfo
public class IndexConfigurationBuilder extends Object implements Builder<IndexConfiguration>, ConfigurationBuilderInfo
- Since:
- 10.0
-
-
Constructor Summary
Constructors Constructor Description IndexConfigurationBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.infinispan.commons.configuration.attributes.AttributeSet
attributes()
IndexConfiguration
create()
Create the configuration beanorg.infinispan.commons.configuration.elements.ElementDefinition
getElementDefinition()
IndexConfigurationBuilder
indexLocation(String indexLocation)
IndexConfigurationBuilder
indexQueueLength(int indexQueueLength)
IndexConfigurationBuilder
indexSegments(int indexSegments)
IndexConfigurationBuilder
maxNodeSize(int maxNodeSize)
IndexConfigurationBuilder
minNodeSize(int minNodeSize)
Builder<?>
read(IndexConfiguration template)
Reads the configuration from an already created configuration bean into this builder.String
toString()
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.
-
indexLocation
public IndexConfigurationBuilder indexLocation(String indexLocation)
-
indexSegments
public IndexConfigurationBuilder indexSegments(int indexSegments)
-
minNodeSize
public IndexConfigurationBuilder minNodeSize(int minNodeSize)
-
maxNodeSize
public IndexConfigurationBuilder maxNodeSize(int maxNodeSize)
-
indexQueueLength
public IndexConfigurationBuilder indexQueueLength(int indexQueueLength)
-
create
public IndexConfiguration create()
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<IndexConfiguration>
- Returns:
-
read
public Builder<?> read(IndexConfiguration 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<IndexConfiguration>
- 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<IndexConfiguration>
-
toString
public String toString()
-
-