Class SingleFileStoreConfiguration
- java.lang.Object
-
- org.infinispan.configuration.cache.AbstractStoreConfiguration
-
- org.infinispan.configuration.cache.AbstractSegmentedStoreConfiguration<SingleFileStoreConfiguration>
-
- org.infinispan.configuration.cache.SingleFileStoreConfiguration
-
- All Implemented Interfaces:
Matchable<SingleFileStoreConfiguration>
,StoreConfiguration
public class SingleFileStoreConfiguration extends AbstractSegmentedStoreConfiguration<SingleFileStoreConfiguration> implements Matchable<SingleFileStoreConfiguration>
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<Float>
FRAGMENTATION_FACTOR
static AttributeDefinition<String>
LOCATION
static AttributeDefinition<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, SingletonStoreConfiguration singletonStore)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AttributeSet
attributeDefinitionSet()
AttributeSet
attributes()
float
fragmentationFactor()
String
location()
int
maxEntries()
SingleFileStoreConfiguration
newConfigurationFrom(int segment)
Method that is invoked each time a new store is created for a segment.String
toString()
-
Methods inherited from class org.infinispan.configuration.cache.AbstractSegmentedStoreConfiguration
fileLocationTransform
-
Methods inherited from class org.infinispan.configuration.cache.AbstractStoreConfiguration
async, equals, fetchPersistentState, hashCode, ignoreModifications, maxBatchSize, preload, properties, purgeOnStartup, segmented, shared, singletonStore, transactional
-
-
-
-
Field Detail
-
LOCATION
public static final AttributeDefinition<String> LOCATION
-
MAX_ENTRIES
public static final AttributeDefinition<Integer> MAX_ENTRIES
-
FRAGMENTATION_FACTOR
public static final AttributeDefinition<Float> FRAGMENTATION_FACTOR
-
-
Constructor Detail
-
SingleFileStoreConfiguration
public SingleFileStoreConfiguration(AttributeSet attributes, AsyncStoreConfiguration async, SingletonStoreConfiguration singletonStore)
-
-
Method Detail
-
attributeDefinitionSet
public static AttributeSet attributeDefinitionSet()
-
newConfigurationFrom
public SingleFileStoreConfiguration newConfigurationFrom(int segment)
Description copied from class:AbstractSegmentedStoreConfiguration
Method that is invoked each time a new store is created for a segment. This method should return a new configuration that is configured to be persisted using the given segment.- Specified by:
newConfigurationFrom
in classAbstractSegmentedStoreConfiguration<SingleFileStoreConfiguration>
- Parameters:
segment
- the segment to use- Returns:
- the newly created configuration
-
location
public String location()
-
maxEntries
public int maxEntries()
-
fragmentationFactor
public float fragmentationFactor()
-
attributes
public AttributeSet attributes()
- Overrides:
attributes
in classAbstractStoreConfiguration
-
toString
public String toString()
- Overrides:
toString
in classAbstractStoreConfiguration
-
-