Configuration.
| Modifier and Type | Field and Description |
|---|---|
| protected Factory | cacheLoaderFactory
The |
| protected Factory | cacheWriterFactory
The |
| protected Factory | expiryPolicyFactory
The |
| protected boolean | isManagementEnabled
Whether management is enabled |
| protected boolean | isReadThrough
A flag indicating if "read-through" mode is required. |
| protected boolean | isStatisticsEnabled
A flag indicating if statistics gathering is enabled. |
| protected boolean | isStoreByValue
A flag indicating if the cache will be store-by-value or store-by-reference. |
| protected boolean | isWriteThrough
A flag indicating if "write-through" mode is required. |
| protected Class | keyType
The type of keys for |
| protected HashSet | |
| public static final long | serialVersionUID
The serialVersionUID required for |
| protected Class | valueType
The type of values for |
| Access | Constructor and Description |
|---|---|
| public | |
| public | MutableConfiguration(CompleteConfiguration<K, V> configuration)
Constructs a |
| Modifier and Type | Method and Description |
|---|---|
| public MutableConfiguration | Returns: theMutableConfiguration to permit fluent-style method callsAdd a configuration for a |
| public boolean | equals(Object
the reference object with which to compare. object)Overrides java. |
| public Iterable | getCacheEntryListenerConfigurations()
Implements javax. javax.cache.configuration.CacheEntryListenerConfigurations
for javax.cache.event.CacheEntryListeners to be configured on a
javax.cache.Cache.
|
| public Factory | getCacheLoaderFactory()
Implements javax. javax.cache.configuration.Factory for the
javax.cache.integration.CacheLoader, if any.
|
| public Factory | getCacheWriterFactory()
Implements javax. javax.cache.configuration.Factory for the
javax.cache.integration.CacheWriter, if any.
|
| public Factory | getExpiryPolicyFactory()
Implements javax. javax.cache.configuration.Factory for the
javax.cache.expiry.ExpiryPolicy to be used for caches.
|
| public Class | getKeyType()
Implements javax. Caches configured
with this Configuration.
|
| public Class | getValueType()
Implements javax. Caches configured
with this Configuration.
|
| public int | |
| public boolean | isManagementEnabled()
Implements javax. |
| public boolean | isReadThrough()
Implements javax. javax.cache.Cache should operate in read-through mode.
|
| public boolean | isStatisticsEnabled()
Implements javax. |
| public boolean | isStoreByValue()
Implements javax. |
| public boolean | isWriteThrough()
Implements javax. javax.cache.Cache should operate in write-through
mode.
|
| public MutableConfiguration | Returns: theMutableConfiguration to permit fluent-style method callsthe
cacheEntryListenerConfiguration)CacheEntryListenerConfiguration to removeRemove a configuration for a |
| public MutableConfiguration | Returns: theMutableConfiguration to permit fluent-style method callsthe factory)CacheLoader FactorySet the |
| public MutableConfiguration | Returns: theMutableConfiguration to permit fluent-style method callsthe factory)CacheWriter FactorySet the |
| public MutableConfiguration | Returns: theMutableConfiguration to permit fluent-style method callsthe factory)ExpiryPolicy FactorySet the |
| public MutableConfiguration | Returns: theMutableConfiguration to permit fluent-style method callstrue to enable statistics, false to disable. enabled)Sets whether management is enabled on a cache. |
| public MutableConfiguration | Returns: theMutableConfiguration to permit fluent-style method callstrue if read-through is requiredSet if read-through caching should be used. |
| public MutableConfiguration | Returns: theMutableConfiguration to permit fluent-style method callstrue to enable statistics, false to disable. enabled)Sets whether statistics gathering is enabled on a cache. |
| public MutableConfiguration | Returns: theMutableConfiguration to permit fluent-style method callstrue if store-by-value is required,
false for store-by-referenceSet if a configured cache should use store-by-value or store-by-reference semantics. |
| public MutableConfiguration | Returns: theMutableConfiguration to permit fluent-style method callsthe expected key type keyType, Class<V> the expected value type valueType)Sets the expected type of keys and values for a |
| public MutableConfiguration | Returns: theMutableConfiguration to permit fluent-style method callstrue if write-through is requiredSet if write-through caching should be used. |
| cacheLoaderFactory | back to summary |
|---|---|
| protected Factory<CacheLoader<K, V>> cacheLoaderFactory The | |
| cacheWriterFactory | back to summary |
|---|---|
| protected Factory<CacheWriter<? super K, ? super V>> cacheWriterFactory The | |
| expiryPolicyFactory | back to summary |
|---|---|
| protected Factory<ExpiryPolicy> expiryPolicyFactory The | |
| isManagementEnabled | back to summary |
|---|---|
| protected boolean isManagementEnabled Whether management is enabled | |
| isReadThrough | back to summary |
|---|---|
| protected boolean isReadThrough A flag indicating if "read-through" mode is required. | |
| isStatisticsEnabled | back to summary |
|---|---|
| protected boolean isStatisticsEnabled A flag indicating if statistics gathering is enabled. | |
| isStoreByValue | back to summary |
|---|---|
| protected boolean isStoreByValue A flag indicating if the cache will be store-by-value or store-by-reference. | |
| isWriteThrough | back to summary |
|---|---|
| protected boolean isWriteThrough A flag indicating if "write-through" mode is required. | |
| keyType | back to summary |
|---|---|
| protected Class<K> keyType The type of keys for | |
| listenerConfigurations | back to summary |
|---|---|
| protected HashSet<CacheEntryListenerConfiguration<K, V>> listenerConfigurations The | |
| serialVersionUID | back to summary |
|---|---|
| public static final long serialVersionUID The serialVersionUID required for | |
| valueType | back to summary |
|---|---|
| protected Class<V> valueType The type of values for | |
| MutableConfiguration | back to summary |
|---|---|
| public MutableConfiguration() Default JavaBean constructor. Creates a default configuration. Default configurations have no runtime type checking and are set for eternal expiry.
To enable runtime type enforcement, if supported by the implementation, call
After construction set any other configuration parameters in the fluent style. e.g.
| |
| MutableConfiguration | back to summary |
|---|---|
| public MutableConfiguration(CompleteConfiguration<K, V> configuration) Constructs a
| |
| addCacheEntryListenerConfiguration | back to summary |
|---|---|
| public MutableConfiguration Add a configuration for a
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getCacheEntryListenerConfigurations | back to summary |
|---|---|
| public Iterable Implements javax. Doc from javax. Obtains the
| |
| getCacheLoaderFactory | back to summary |
|---|---|
| public Factory Implements javax. Doc from javax. Gets the
A CacheLoader should be configured for "Read Through" caches to load values
when a cache miss occurs using either the
The default value is
| |
| getCacheWriterFactory | back to summary |
|---|---|
| public Factory Implements javax. Doc from javax. Gets the
The default value is
| |
| getExpiryPolicyFactory | back to summary |
|---|---|
| public Factory Implements javax. Doc from javax. Gets the
The default value is a
| |
| getKeyType | back to summary |
|---|---|
| public Class Implements javax. Doc from javax. Determines the required type of keys for | |
| getValueType | back to summary |
|---|---|
| public Class Implements javax. Doc from javax. Determines the required type of values for | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isManagementEnabled | back to summary |
|---|---|
| public boolean isManagementEnabled() Implements javax. Doc from javax. Checks whether management is enabled on this cache.
The default value is
| |
| isReadThrough | back to summary |
|---|---|
| public boolean isReadThrough() Implements javax. Doc from javax. Determines if a
When in "read-through" mode, cache misses that occur due to cache entries
not existing as a result of performing a "get" will appropriately
cause the configured
The default value is
| |
| isStatisticsEnabled | back to summary |
|---|---|
| public boolean isStatisticsEnabled() Implements javax. Doc from javax. Checks whether statistics collection is enabled in this cache.
The default value is
| |
| isStoreByValue | back to summary |
|---|---|
| public boolean isStoreByValue() Implements javax. Doc from javax. Whether storeByValue (true) or storeByReference (false). When true, both keys and values are stored by value. When false, both keys and values are stored by reference. Caches stored by reference are capable of mutation by any threads holding the reference. The effects are:
When a cache is storeByValue, any mutation to the key or value does not affect the key of value stored in the cache.
The default value is
| |
| removeCacheEntryListenerConfiguration | back to summary |
|---|---|
| public MutableConfiguration Remove a configuration for a
| |
| setCacheLoaderFactory | back to summary |
|---|---|
| public MutableConfiguration Set the
| |
| setCacheWriterFactory | back to summary |
|---|---|
| public MutableConfiguration Set the
| |
| setExpiryPolicyFactory | back to summary |
|---|---|
| public MutableConfiguration Set the Only one expiry policy can be set for a cache. The last policy applied before cache construction will be the one used.
| |
| setManagementEnabled | back to summary |
|---|---|
| public MutableConfiguration Sets whether management is enabled on a cache.
Management may be enabled or disabled at runtime via
| |
| setReadThrough | back to summary |
|---|---|
| public MutableConfiguration Set if read-through caching should be used.
It is an invalid configuration to set this to true without specifying a
| |
| setStatisticsEnabled | back to summary |
|---|---|
| public MutableConfiguration Sets whether statistics gathering is enabled on a cache.
Statistics may be enabled or disabled at runtime via
| |
| setStoreByValue | back to summary |
|---|---|
| public MutableConfiguration Set if a configured cache should use store-by-value or store-by-reference semantics.
| |
| setTypes | back to summary |
|---|---|
| public MutableConfiguration Sets the expected type of keys and values for a
This is used by
Implementations may further perform type checking on mutative cache operations
and throw a
| |
| setWriteThrough | back to summary |
|---|---|
| public MutableConfiguration Set if write-through caching should be used.
It is an invalid configuration to set this to true without specifying a
| |