Class PersistenceConfiguration
java.lang.Object
org.infinispan.commons.configuration.attributes.ConfigurationElement<PersistenceConfiguration>
org.infinispan.configuration.cache.PersistenceConfiguration
- All Implemented Interfaces:
Matchable<PersistenceConfiguration>
,Updatable<PersistenceConfiguration>
Configuration for stores.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final AttributeDefinition
<TimeQuantity> static final AttributeDefinition
<Integer> static final AttributeDefinition
<TimeQuantity> Deprecated, for removal: This API element is subject to removal in a future version.static final AttributeDefinition
<Boolean> Fields inherited from class org.infinispan.commons.configuration.attributes.ConfigurationElement
attributes, CHILDLESS, children, element, repeated
-
Method Summary
Modifier and TypeMethodDescriptionint
int
int
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.since 14.0.boolean
If true, data is only written to the cache store when it is evicted from memory, a phenomenon known as 'passivation'.preload()
Loops through all individual cache loader configs and checks if preload is set on any of themstores()
boolean
boolean
Returns if any store isStoreConfiguration.segmented()
boolean
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
-
Field Details
-
PASSIVATION
-
AVAILABILITY_INTERVAL
-
CONNECTION_ATTEMPTS
-
CONNECTION_INTERVAL
@Deprecated(forRemoval=true, since="15.0") public static final AttributeDefinition<TimeQuantity> CONNECTION_INTERVALDeprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
passivation
public boolean passivation()If true, data is only written to the cache store when it is evicted from memory, a phenomenon known as 'passivation'. Next time the data is requested, it will be 'activated' which means that data will be brought back to memory and removed from the persistent store. This gives you the ability to 'overflow' to disk, similar to swapping in an operating system.
If false, the cache store contains a copy of the contents in memory, so writes to cache result in cache store writes. This essentially gives you a 'write-through' configuration. -
availabilityInterval
public int availabilityInterval() -
connectionAttempts
public int connectionAttempts() -
connectionInterval
Deprecated, for removal: This API element is subject to removal in a future version. -
stores
-
fetchPersistentState
Deprecated, for removal: This API element is subject to removal in a future version.since 14.0. This will always return falseLoops through all individual cache loader configs and checks if fetchPersistentState is set on any of them -
preload
Loops through all individual cache loader configs and checks if preload is set on any of them -
usingStores
public boolean usingStores() -
usingAsyncStore
public boolean usingAsyncStore() -
usingSegmentedStore
public boolean usingSegmentedStore()Returns if any store isStoreConfiguration.segmented()
- Returns:
- true if any configured store is segmented, otherwise false
-