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> 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
CacheBuilder<K,V> A CacheBuilder is used for creating Caches.
CacheConfiguration<K,V> Information on how a cache is configured.
CacheLifecycle Cache resources may have non-trivial initialisation and disposal procedures.
CacheLoader<K,V> Used for read-through caching and loading data into a cache.
CacheManager A CacheManager is used for looking up Caches and controls their lifecycle.
CacheManagerFactory Manages CacheManager instances.
CacheStatistics Cache statistics.
CacheWriter<K,V> A CacheWriter is used for write-through and write-behind caching to a underlying resource.
 

Class Summary
CacheConfiguration.Duration A time duration.
Caching A factory for creating CacheManagers using the SPI conventions in the JDK's ServiceLoader

For a provider to be discovered, it's jar must contain a resource called:

 

Enum Summary
CacheConfiguration.ExpiryType Type of Expiry
OptionalFeature Optional features that may be present in an implementation.
Status Indicates the status in it's lifecycle 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 © 2012. All Rights Reserved.