|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CacheBuilder
A CacheBuilder is used for creating Caches.
| Method Summary | ||
|---|---|---|
|
createCache(String cacheName)
Create an instance of the named Cache. |
|
|
createCache(String cacheName,
CacheConfiguration configuration)
Create an instance of the named Cache. |
|
| Method Detail |
|---|
<K,V> Cache<K,V> createCache(String cacheName)
Cache.
Solely responsible for creating uninitialized cache instances.
Lookup and Lifecycle management are the responsibility of CacheManager.
Implementations may use a default configuration or use the cache name to select
a suitable configuration.
K - the key typeV - the value typecacheName - the name of the cache
InvalidConfigurationException - thrown if the configuration is invalid
NullPointerException - is cacheName is nullCacheManager
<K,V> Cache<K,V> createCache(String cacheName,
CacheConfiguration configuration)
Cache.
Solely responsible for creating uninitialized cache instances.
Lookup and Lifecycle management are the responsibility of CacheManager.
K - the key typeV - the value typecacheName - the name of the cacheconfiguration - the configuration for the new cache
InvalidConfigurationException - thrown if the configuration is invalid
NullPointerException - is cacheName is null or configuration is nullCacheManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||