Package org.ehcache.spi.loaderwriter
Interface WriteBehindProvider
-
- All Superinterfaces:
Service
public interface WriteBehindProvider extends Service
AServicethat provides write-behind functionality.A
CacheManagerwill use thecreateWriteBehindLoaderWriter(org.ehcache.spi.loaderwriter.CacheLoaderWriter, org.ehcache.spi.loaderwriter.WriteBehindConfiguration)method to create write-behind instances for eachCacheit manages that carries a write-behind configuration.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <K,V>
CacheLoaderWriter<K,V>createWriteBehindLoaderWriter(CacheLoaderWriter<K,V> cacheLoaderWriter, WriteBehindConfiguration<?> configuration)Creates write-behind decoratedCacheLoaderWriteraccording to the given configuration.voidreleaseWriteBehindLoaderWriter(CacheLoaderWriter<?,?> cacheLoaderWriter)Releases a write-behind decorator when the associatedCacheis finished with it.
-
-
-
Method Detail
-
createWriteBehindLoaderWriter
<K,V> CacheLoaderWriter<K,V> createWriteBehindLoaderWriter(CacheLoaderWriter<K,V> cacheLoaderWriter, WriteBehindConfiguration<?> configuration)
Creates write-behind decoratedCacheLoaderWriteraccording to the given configuration.- Type Parameters:
K- the key type for the loader writerV- the value type for the loader writer- Parameters:
cacheLoaderWriter- theCacheLoaderWriterto decorateconfiguration- the write-behind configuration- Returns:
- the write-behind decorated loader writer
-
releaseWriteBehindLoaderWriter
void releaseWriteBehindLoaderWriter(CacheLoaderWriter<?,?> cacheLoaderWriter)
Releases a write-behind decorator when the associatedCacheis finished with it.- Parameters:
cacheLoaderWriter- theCacheLoaderWriterto release
-
-