Each cache's management object must be registered with an ObjectName that is unique and has the following type and attributes:
Type:
javax.cache:type=CacheConfiguration
Required Attributes:
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the fully qualified class name of the key type, or "java.lang.Object" if the type is undefined.Determines the required type of keys for this |
| public String | Returns: the fully qualified class name of the value type, or "java.lang.Object" if the type is undefined.Determines the required type of values for this |
| public boolean | Returns: true if management is enabledChecks whether management is enabled on this cache. |
| public boolean | |
| public boolean | Returns: true if statistics collection is enabledChecks whether statistics collection is enabled in this cache. |
| public boolean | Returns: true if the cache is store by valueWhether storeByValue (true) or storeByReference (false). |
| public boolean |
| getKeyType | back to summary |
|---|---|
| public String getKeyType() Determines the required type of keys for this
| |
| getValueType | back to summary |
|---|---|
| public String getValueType() Determines the required type of values for this
| |
| isManagementEnabled | back to summary |
|---|---|
| public boolean isManagementEnabled() Checks whether management is enabled on this cache.
The default value is
| |
| isReadThrough | back to summary |
|---|---|
| public boolean isReadThrough() 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" call via one of
The default value is
| |
| isStatisticsEnabled | back to summary |
|---|---|
| public boolean isStatisticsEnabled() Checks whether statistics collection is enabled in this cache.
The default value is
| |
| isStoreByValue | back to summary |
|---|---|
| public boolean isStoreByValue() 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
| |
| isWriteThrough | back to summary |
|---|---|
| public boolean isWriteThrough() Determines if a
When in "write-through" mode, cache updates that occur as a result of
performing "put" operations called via one of
will appropriately cause the configured
The default value is
| |