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_FACTORstatic AttributeDefinition<String>LOCATIONstatic 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 AttributeSetattributeDefinitionSet()AttributeSetattributes()floatfragmentationFactor()Stringlocation()intmaxEntries()SingleFileStoreConfigurationnewConfigurationFrom(int segment)Method that is invoked each time a new store is created for a segment.StringtoString()-
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:AbstractSegmentedStoreConfigurationMethod 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:
newConfigurationFromin 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:
attributesin classAbstractStoreConfiguration
-
toString
public String toString()
- Overrides:
toStringin classAbstractStoreConfiguration
-
-