Class AbstractStoreConfiguration<T extends StoreConfiguration>
java.lang.Object
org.infinispan.commons.configuration.attributes.ConfigurationElement<AbstractStoreConfiguration<T>>
org.infinispan.configuration.cache.AbstractStoreConfiguration<T>
- All Implemented Interfaces:
Matchable<AbstractStoreConfiguration<T>>
,Updatable<AbstractStoreConfiguration<T>>
,StoreConfiguration
- Direct Known Subclasses:
AbstractJdbcStoreConfiguration
,AbstractSegmentedStoreConfiguration
,ClusterLoaderConfiguration
,CustomStoreConfiguration
,RemoteStoreConfiguration
,RocksDBStoreConfiguration
,SingleFileStoreConfiguration
,SoftIndexFileStoreConfiguration
public class AbstractStoreConfiguration<T extends StoreConfiguration>
extends ConfigurationElement<AbstractStoreConfiguration<T>>
implements StoreConfiguration
-
Field Summary
Modifier and TypeFieldDescriptionstatic final AttributeDefinition
<Integer> static final AttributeDefinition
<Boolean> static final AttributeDefinition
<TypedProperties> static final AttributeDefinition
<Boolean> static final AttributeDefinition
<Boolean> static final AttributeDefinition
<Boolean> static final AttributeDefinition
<Boolean> static final AttributeDefinition
<Boolean> static final AttributeDefinition
<Boolean> Fields inherited from class org.infinispan.commons.configuration.attributes.ConfigurationElement
attributes, CHILDLESS, children, element, repeated
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractStoreConfiguration
(Enum<?> element, AttributeSet attributes, AsyncStoreConfiguration async, ConfigurationElement<?>... children) -
Method Summary
Modifier and TypeMethodDescriptionasync()
Configuration for the async cache loader.static AttributeSet
boolean
Deprecated, for removal: This API element is subject to removal in a future version.since 14.0.boolean
If true, any operation that modifies the cache (put, remove, clear, store...etc) won't be applied to the cache store.int
boolean
preload()
boolean
If true, purges this cache store when it starts up.boolean
Whether or not this store is configured to be segmented.boolean
shared()
boolean
boolean
If true, any operation that reads from the cache won't be retrieved from the given store.Methods inherited from class org.infinispan.commons.configuration.attributes.ConfigurationElement
attributes, child, children, children, elementName, equals, findAttribute, hashCode, isModified, list, matches, toString, update, validateUpdate, write
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.infinispan.configuration.cache.StoreConfiguration
attributes
-
Field Details
-
PURGE_ON_STARTUP
-
READ_ONLY
-
WRITE_ONLY
-
PRELOAD
-
SHARED
-
TRANSACTIONAL
-
MAX_BATCH_SIZE
-
SEGMENTED
-
PROPERTIES
-
-
Constructor Details
-
AbstractStoreConfiguration
protected AbstractStoreConfiguration(Enum<?> element, AttributeSet attributes, AsyncStoreConfiguration async, ConfigurationElement<?>... children)
-
-
Method Details
-
attributeDefinitionSet
-
async
Configuration for the async cache loader. If enabled, this provides you with asynchronous writes to the cache store, giving you 'write-behind' caching.- Specified by:
async
in interfaceStoreConfiguration
-
purgeOnStartup
public boolean purgeOnStartup()If true, purges this cache store when it starts up.- Specified by:
purgeOnStartup
in interfaceStoreConfiguration
-
transactional
public boolean transactional()- Specified by:
transactional
in interfaceStoreConfiguration
-
maxBatchSize
public int maxBatchSize()- Specified by:
maxBatchSize
in interfaceStoreConfiguration
-
segmented
public boolean segmented()Description copied from interface:StoreConfiguration
Whether or not this store is configured to be segmented. For a non shared store this means there will be a separate instance of each store for each segment. For shared stores normally this means the store is able to do some optimizations based on the segment (ie. select * from table where segment = $1)- Specified by:
segmented
in interfaceStoreConfiguration
- Returns:
- whether this store is configured to be segmented
-
fetchPersistentState
Deprecated, for removal: This API element is subject to removal in a future version.since 14.0. Always returns false. The first non shared store is used instead.If true, fetch persistent state when joining a cluster. If multiple cache stores are chained, only one of them can have this property enabled. Persistent state transfer with a shared cache store does not make sense, as the same persistent store that provides the data will just end up receiving it. Therefore, if a shared cache store is used, the cache will not allow a persistent state transfer even if a cache store has this property set to true.- Specified by:
fetchPersistentState
in interfaceStoreConfiguration
-
ignoreModifications
public boolean ignoreModifications()If true, any operation that modifies the cache (put, remove, clear, store...etc) won't be applied to the cache store. This means that the cache store could become out of sync with the cache.- Specified by:
ignoreModifications
in interfaceStoreConfiguration
-
writeOnly
public boolean writeOnly()If true, any operation that reads from the cache won't be retrieved from the given store. This includes bulk operations as well.- Specified by:
writeOnly
in interfaceStoreConfiguration
-
preload
public boolean preload()- Specified by:
preload
in interfaceStoreConfiguration
-
properties
- Specified by:
properties
in interfaceStoreConfiguration
-