|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CacheLoaderWriterProvider
A Service that creates CacheLoaderWriter instances.
A CacheManager will use the createCacheLoaderWriter(java.lang.String, org.ehcache.config.CacheConfiguration)
method to create CacheLoaderWriter instances for each Cache it
manages.
For any non null value returned, the Cache will be configured to use the
CacheLoaderWriter instance returned.
| Method Summary | ||
|---|---|---|
|
createCacheLoaderWriter(java.lang.String alias,
CacheConfiguration<K,V> cacheConfiguration)
Creates a CacheLoaderWriter for use with the Cache
of the given alias and configuration. |
|
void |
releaseCacheLoaderWriter(CacheLoaderWriter<?,?> cacheLoaderWriter)
Releases a CacheLoaderWriter when the associated Cache
is finished with it. |
|
| Methods inherited from interface org.ehcache.spi.service.Service |
|---|
start, stop |
| Method Detail |
|---|
<K,V> CacheLoaderWriter<? super K,V> createCacheLoaderWriter(java.lang.String alias,
CacheConfiguration<K,V> cacheConfiguration)
CacheLoaderWriter for use with the Cache
of the given alias and configuration.
K - the loader-writer key typeV - the loader-writer value typealias - the Cache alias in the CacheManagercacheConfiguration - the configuration for the associated cache
CacheLoaderWriter to be used by the Cache or null if none
void releaseCacheLoaderWriter(CacheLoaderWriter<?,?> cacheLoaderWriter)
throws java.lang.Exception
CacheLoaderWriter when the associated Cache
is finished with it.
If the CacheLoaderWriter instance was user provided close
will not be invoked.
cacheLoaderWriter - the CacheLoaderWriter being released
java.lang.Exception - when the release fails
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||