Class AbstractStoreConfiguration
- java.lang.Object
-
- org.infinispan.configuration.cache.AbstractStoreConfiguration
-
- All Implemented Interfaces:
StoreConfiguration
- Direct Known Subclasses:
AbstractJdbcStoreConfiguration,AbstractSegmentedStoreConfiguration,ClusterLoaderConfiguration,CustomStoreConfiguration,JpaStoreConfiguration,RemoteStoreConfiguration,RocksDBStoreConfiguration,SingleFileStoreConfiguration,SoftIndexFileStoreConfiguration
public class AbstractStoreConfiguration extends Object implements StoreConfiguration
-
-
Field Summary
Fields Modifier and Type Field Description protected org.infinispan.commons.configuration.attributes.AttributeSetattributesstatic org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean>FETCH_STATEstatic org.infinispan.commons.configuration.attributes.AttributeDefinition<Integer>MAX_BATCH_SIZEstatic org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean>PRELOADstatic org.infinispan.commons.configuration.attributes.AttributeDefinition<TypedProperties>PROPERTIESstatic org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean>PURGE_ON_STARTUPstatic org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean>READ_ONLYstatic org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean>SEGMENTEDstatic org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean>SHAREDstatic org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean>TRANSACTIONALstatic org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean>WRITE_ONLY
-
Constructor Summary
Constructors Constructor Description AbstractStoreConfiguration(org.infinispan.commons.configuration.attributes.AttributeSet attributes, AsyncStoreConfiguration async)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AsyncStoreConfigurationasync()Configuration for the async cache loader.static org.infinispan.commons.configuration.attributes.AttributeSetattributeDefinitionSet()org.infinispan.commons.configuration.attributes.AttributeSetattributes()booleanequals(Object obj)booleanfetchPersistentState()If true, fetch persistent state when joining a cluster.inthashCode()booleanignoreModifications()If true, any operation that modifies the cache (put, remove, clear, store...etc) won't be applied to the cache store.intmaxBatchSize()booleanpreload()Propertiesproperties()booleanpurgeOnStartup()If true, purges this cache store when it starts up.booleansegmented()Whether or not this store is configured to be segmented.booleanshared()StringtoString()booleantransactional()booleanwriteOnly()If true, any operation that reads from the cache won't be retrieved from the given store.
-
-
-
Field Detail
-
FETCH_STATE
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean> FETCH_STATE
-
PURGE_ON_STARTUP
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean> PURGE_ON_STARTUP
-
READ_ONLY
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean> READ_ONLY
-
WRITE_ONLY
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean> WRITE_ONLY
-
PRELOAD
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean> PRELOAD
-
SHARED
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean> SHARED
-
TRANSACTIONAL
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean> TRANSACTIONAL
-
MAX_BATCH_SIZE
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Integer> MAX_BATCH_SIZE
-
SEGMENTED
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean> SEGMENTED
-
PROPERTIES
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<TypedProperties> PROPERTIES
-
attributes
protected final org.infinispan.commons.configuration.attributes.AttributeSet attributes
-
-
Constructor Detail
-
AbstractStoreConfiguration
public AbstractStoreConfiguration(org.infinispan.commons.configuration.attributes.AttributeSet attributes, AsyncStoreConfiguration async)
-
-
Method Detail
-
attributeDefinitionSet
public static org.infinispan.commons.configuration.attributes.AttributeSet attributeDefinitionSet()
-
async
public AsyncStoreConfiguration 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:
asyncin interfaceStoreConfiguration
-
purgeOnStartup
public boolean purgeOnStartup()
If true, purges this cache store when it starts up.- Specified by:
purgeOnStartupin interfaceStoreConfiguration
-
shared
public boolean shared()
- Specified by:
sharedin interfaceStoreConfiguration
-
transactional
public boolean transactional()
- Specified by:
transactionalin interfaceStoreConfiguration
-
maxBatchSize
public int maxBatchSize()
- Specified by:
maxBatchSizein interfaceStoreConfiguration
-
segmented
public boolean segmented()
Description copied from interface:StoreConfigurationWhether 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:
segmentedin interfaceStoreConfiguration- Returns:
- whether this store is configured to be segmented
-
fetchPersistentState
public boolean fetchPersistentState()
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:
fetchPersistentStatein 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:
ignoreModificationsin 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:
writeOnlyin interfaceStoreConfiguration
-
preload
public boolean preload()
- Specified by:
preloadin interfaceStoreConfiguration
-
properties
public Properties properties()
- Specified by:
propertiesin interfaceStoreConfiguration
-
attributes
public org.infinispan.commons.configuration.attributes.AttributeSet attributes()
-
toString
public String toString()
-
hashCode
public int hashCode()
-
equals
public boolean equals(Object obj)
-
-