Class SingleFileStoreConfiguration
- java.lang.Object
-
- org.infinispan.configuration.cache.AbstractStoreConfiguration
-
- org.infinispan.configuration.cache.AbstractSegmentedStoreConfiguration<SingleFileStoreConfiguration>
-
- org.infinispan.configuration.cache.SingleFileStoreConfiguration
-
- All Implemented Interfaces:
BaseConfigurationInfo
,ConfigurationInfo
,StoreConfiguration
public class SingleFileStoreConfiguration extends AbstractSegmentedStoreConfiguration<SingleFileStoreConfiguration> implements ConfigurationInfo
Defines the configuration for the single file cache store.- Since:
- 6.0
- Author:
- Galder ZamarreƱo
-
-
Field Summary
Fields Modifier and Type Field Description static AttributeDefinition<java.lang.Float>
FRAGMENTATION_FACTOR
static AttributeDefinition<java.lang.String>
LOCATION
static AttributeDefinition<java.lang.Integer>
MAX_ENTRIES
-
Fields inherited from class org.infinispan.configuration.cache.AbstractStoreConfiguration
attributes, FETCH_PERSISTENT_STATE, IGNORE_MODIFICATIONS, MAX_BATCH_SIZE, PRELOAD, PROPERTIES, PURGE_ON_STARTUP, SEGMENTED, SHARED, TRANSACTIONAL
-
-
Constructor Summary
Constructors Constructor Description SingleFileStoreConfiguration(AttributeSet attributes, AsyncStoreConfiguration async)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AttributeSet
attributeDefinitionSet()
AttributeSet
attributes()
float
fragmentationFactor()
ElementDefinition
getElementDefinition()
java.lang.String
location()
int
maxEntries()
SingleFileStoreConfiguration
newConfigurationFrom(int segment, InitializationContext ctx)
Same asAbstractSegmentedStoreConfiguration.newConfigurationFrom(int)
except that you can utilize the intialization context when initializing the segmented store object.java.util.List<ConfigurationInfo>
subElements()
java.lang.String
toString()
-
Methods inherited from class org.infinispan.configuration.cache.AbstractSegmentedStoreConfiguration
fileLocationTransform, newConfigurationFrom
-
Methods inherited from class org.infinispan.configuration.cache.AbstractStoreConfiguration
async, equals, fetchPersistentState, hashCode, ignoreModifications, maxBatchSize, preload, properties, purgeOnStartup, segmented, shared, transactional
-
-
-
-
Field Detail
-
LOCATION
public static final AttributeDefinition<java.lang.String> LOCATION
-
MAX_ENTRIES
public static final AttributeDefinition<java.lang.Integer> MAX_ENTRIES
-
FRAGMENTATION_FACTOR
public static final AttributeDefinition<java.lang.Float> FRAGMENTATION_FACTOR
-
-
Constructor Detail
-
SingleFileStoreConfiguration
public SingleFileStoreConfiguration(AttributeSet attributes, AsyncStoreConfiguration async)
-
-
Method Detail
-
attributeDefinitionSet
public static AttributeSet attributeDefinitionSet()
-
getElementDefinition
public ElementDefinition getElementDefinition()
- Specified by:
getElementDefinition
in interfaceBaseConfigurationInfo
- Returns:
- the
ElementDefinition
of the configuration.
-
subElements
public java.util.List<ConfigurationInfo> subElements()
- Specified by:
subElements
in interfaceConfigurationInfo
- Overrides:
subElements
in classAbstractStoreConfiguration
- Returns:
- the list of sub elements.
-
newConfigurationFrom
public SingleFileStoreConfiguration newConfigurationFrom(int segment, InitializationContext ctx)
Description copied from class:AbstractSegmentedStoreConfiguration
Same asAbstractSegmentedStoreConfiguration.newConfigurationFrom(int)
except that you can utilize the intialization context when initializing the segmented store object. This method- Overrides:
newConfigurationFrom
in classAbstractSegmentedStoreConfiguration<SingleFileStoreConfiguration>
- Parameters:
segment
- the segment to usectx
- the initialization context from the persistence layer- Returns:
- the newly created configuration
-
location
public java.lang.String location()
-
maxEntries
public int maxEntries()
-
fragmentationFactor
public float fragmentationFactor()
-
attributes
public AttributeSet attributes()
- Specified by:
attributes
in interfaceBaseConfigurationInfo
- Overrides:
attributes
in classAbstractStoreConfiguration
- Returns:
- the
AttributeSet
declared by the configuration.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classAbstractStoreConfiguration
-
-