|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
K - the type of keys maintained by cacheV - the type of cached valuespublic interface CacheFactory<K,V>
A factory for instantiating Cache implementations. To provide an implementation for a specific cache type, please implement this interface. When providing your own cache instance as explained in the JavaDocs for this package, please make sure that you provide valid values for the name and className properties. package, please make sure that you provide valid values for the name and className properties.
| Method Summary | |
|---|---|
Cache<K,V> |
getCache(ClassLoader classLoader)
Instantiates an instance of the cache implementation this factory is responsible for using the given classloader. |
String |
getCacheClassName()
Returns the full class name of the underlying cache implementation. |
String |
getCacheType()
Returns the short alias cache type for this factory instance. |
void |
shutdown()
Allows for cache-specific shutdown operations and resource cleanup. |
| Method Detail |
|---|
Cache<K,V> getCache(ClassLoader classLoader)
throws CacheAcquireException
classLoader - A ClassLoader instance.
CacheAcquireException - Problem instantiating a cache instance.String getCacheType()
String getCacheClassName()
void shutdown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||