Class PersistenceConfiguration
- java.lang.Object
-
- org.infinispan.configuration.cache.PersistenceConfiguration
-
- All Implemented Interfaces:
org.infinispan.commons.configuration.attributes.Matchable<PersistenceConfiguration>
,BaseConfigurationInfo
,ConfigurationInfo
public class PersistenceConfiguration extends Object implements org.infinispan.commons.configuration.attributes.Matchable<PersistenceConfiguration>, ConfigurationInfo
Configuration for stores.
-
-
Field Summary
Fields Modifier and Type Field Description static org.infinispan.commons.configuration.attributes.AttributeDefinition<Integer>
AVAILABILITY_INTERVAL
static org.infinispan.commons.configuration.attributes.AttributeDefinition<Integer>
CONNECTION_ATTEMPTS
static org.infinispan.commons.configuration.attributes.AttributeDefinition<Integer>
CONNECTION_INTERVAL
static org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean>
PASSIVATION
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.infinispan.commons.configuration.attributes.AttributeSet
attributes()
int
availabilityInterval()
int
connectionAttempts()
int
connectionInterval()
boolean
equals(Object obj)
Boolean
fetchPersistentState()
Loops through all individual cache loader configs and checks if fetchPersistentState is set on any of themorg.infinispan.commons.configuration.elements.ElementDefinition
getElementDefinition()
int
hashCode()
boolean
passivation()
If true, data is only written to the cache store when it is evicted from memory, a phenomenon known as 'passivation'.Boolean
preload()
Loops through all individual cache loader configs and checks if preload is set on any of themList<StoreConfiguration>
stores()
List<ConfigurationInfo>
subElements()
String
toString()
boolean
usingAsyncStore()
boolean
usingSegmentedStore()
Returns if any store isStoreConfiguration.segmented()
boolean
usingStores()
-
-
-
Field Detail
-
PASSIVATION
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean> PASSIVATION
-
AVAILABILITY_INTERVAL
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Integer> AVAILABILITY_INTERVAL
-
CONNECTION_ATTEMPTS
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Integer> CONNECTION_ATTEMPTS
-
CONNECTION_INTERVAL
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Integer> CONNECTION_INTERVAL
-
-
Method Detail
-
getElementDefinition
public org.infinispan.commons.configuration.elements.ElementDefinition getElementDefinition()
- Specified by:
getElementDefinition
in interfaceBaseConfigurationInfo
- Returns:
- the
ElementDefinition
of the configuration.
-
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
public int connectionInterval()
-
stores
public List<StoreConfiguration> stores()
-
fetchPersistentState
public Boolean fetchPersistentState()
Loops through all individual cache loader configs and checks if fetchPersistentState is set on any of them
-
preload
public Boolean 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
-
attributes
public org.infinispan.commons.configuration.attributes.AttributeSet attributes()
- Specified by:
attributes
in interfaceBaseConfigurationInfo
- Returns:
- the
AttributeSet
declared by the configuration.
-
subElements
public List<ConfigurationInfo> subElements()
- Specified by:
subElements
in interfaceConfigurationInfo
- Returns:
- the list of sub elements.
-
toString
public String toString()
-
equals
public boolean equals(Object obj)
-
hashCode
public int hashCode()
-
-