Package javax.cache

This package contains the API for JCache.

See:
          Description

Interface Summary
Cache<K,V> A Cache provides storage of data for later fast retrieval.
Cache.Entry<K,V> A cache entry (key-value pair).
Cache.EntryProcessor<K,V,T> Allows execution of code which may mutate a cache entry with exclusive access (including reads) to that entry.
Cache.MutableEntry<K,V> An accessor and mutator to the underlying Cache
CacheLifecycle Cache resources may have non-trivial initialisation and disposal procedures.
CacheLoader<K,V> Used when a cache is read-through or when loading data into a cache via the Cache.load(Object) and Cache.loadAll(java.util.Set) methods.
CacheManager A CacheManager is used for establishing, looking up and managing the lifecycle of zero or more Caches.
CacheManagerFactory Manages CacheManager instances.
CacheMXBean A management bean for cache.
CacheStatisticsMXBean Cache statistics.
CacheWriter<K,V> A CacheWriter is used for write-through to an underlying resource.
Configuration<K,V> A read-only representation of a Cache configuration.
ExpiryPolicy<K,V> Defines functions to determine when cache entries will expire based on creation, access and modification operations.
 

Class Summary
Caching A factory for creating CacheManagers using the SPI conventions in the JDK's ServiceLoader

For a provider to be discovered, its jar must contain a resource called:

Configuration.Duration A time duration.
ExpiryPolicy.Accessed<K,V> A ExpiryPolicy that defines the expiry Configuration.Duration of a Cache Entry based on the last time it was accessed.
ExpiryPolicy.Default<K,V> The default ExpiryPolicy specifies that Cache Entries won't expire.
ExpiryPolicy.Modified<K,V> A ExpiryPolicy that defines the expiry Configuration.Duration of a Cache Entry based on the last time it was modified.
MutableConfiguration<K,V> A simple mutable implementation of a Configuration.
 

Enum Summary
OptionalFeature Optional features that may be present in an implementation.
Status Indicates the lifecycle status of a resource.
 

Exception Summary
CacheException Thrown to indicate an exception has occurred in the Cache.
CachingShutdownException Thrown to indicate an exception has occurred in an aggregate Caching shutdown procedure.
InvalidConfigurationException An exception to report invalid configuration settings.
 

Package javax.cache Description

This package contains the API for JCache.

The entry point is the Caching class. CacheManager holds and controls a collection of Caches. A cache is an association of key to value.

Since:
1.0
Author:
Greg Luck, Yannis Cosmadopoulos


Copyright © 2013. All Rights Reserved.