Class PersistenceConfiguration
java.lang.Object
org.infinispan.configuration.cache.PersistenceConfiguration
- All Implemented Interfaces:
- org.infinispan.commons.configuration.attributes.Matchable<PersistenceConfiguration>
public class PersistenceConfiguration
extends Object
implements org.infinispan.commons.configuration.attributes.Matchable<PersistenceConfiguration>
Configuration for stores.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final org.infinispan.commons.configuration.attributes.AttributeDefinition<Integer>static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Integer>static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Integer>static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean>
- 
Method SummaryModifier and TypeMethodDescriptionorg.infinispan.commons.configuration.attributes.AttributeSetintintintbooleanLoops through all individual cache loader configs and checks if fetchPersistentState is set on any of theminthashCode()booleanIf 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()toString()booleanbooleanReturns if any store isStoreConfiguration.segmented()boolean
- 
Field Details- 
PASSIVATIONpublic static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean> PASSIVATION
- 
AVAILABILITY_INTERVALpublic static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Integer> AVAILABILITY_INTERVAL
- 
CONNECTION_ATTEMPTSpublic static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Integer> CONNECTION_ATTEMPTS
- 
CONNECTION_INTERVALpublic static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Integer> CONNECTION_INTERVAL
 
- 
- 
Method Details- 
passivationpublic 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.
- 
availabilityIntervalpublic int availabilityInterval()
- 
connectionAttemptspublic int connectionAttempts()
- 
connectionIntervalpublic int connectionInterval()
- 
stores
- 
fetchPersistentStateLoops through all individual cache loader configs and checks if fetchPersistentState is set on any of them
- 
preloadLoops through all individual cache loader configs and checks if preload is set on any of them
- 
usingStorespublic boolean usingStores()
- 
usingAsyncStorepublic boolean usingAsyncStore()
- 
usingSegmentedStorepublic boolean usingSegmentedStore()Returns if any store isStoreConfiguration.segmented()- Returns:
- true if any configured store is segmented, otherwise false
 
- 
attributespublic org.infinispan.commons.configuration.attributes.AttributeSet attributes()
- 
toString
- 
equals
- 
hashCodepublic int hashCode()
 
-