org.ehcache.spi.loaderwriter
Interface WriteBehindProvider

All Superinterfaces:
Service

public interface WriteBehindProvider
extends Service

A Service that provides write-behind functionality.

A CacheManager will use the createWriteBehindLoaderWriter(org.ehcache.spi.loaderwriter.CacheLoaderWriter, org.ehcache.spi.loaderwriter.WriteBehindConfiguration) method to create write-behind instances for each Cache it manages that carries a write-behind configuration.


Method Summary
<K,V> CacheLoaderWriter<K,V>
createWriteBehindLoaderWriter(CacheLoaderWriter<K,V> cacheLoaderWriter, WriteBehindConfiguration configuration)
          Creates write-behind decorated CacheLoaderWriter according to the given configuration.
 void releaseWriteBehindLoaderWriter(CacheLoaderWriter<?,?> cacheLoaderWriter)
          Releases a write-behind decorator when the associated Cache is finished with it.
 
Methods inherited from interface org.ehcache.spi.service.Service
start, stop
 

Method Detail

createWriteBehindLoaderWriter

<K,V> CacheLoaderWriter<K,V> createWriteBehindLoaderWriter(CacheLoaderWriter<K,V> cacheLoaderWriter,
                                                           WriteBehindConfiguration configuration)
Creates write-behind decorated CacheLoaderWriter according to the given configuration.

Type Parameters:
K - the key type for the loader writer
V - the value type for the loader writer
Parameters:
cacheLoaderWriter - the CacheLoaderWriter to decorate
configuration - the write-behind configuration
Returns:
the write-behind decorated loader writer

releaseWriteBehindLoaderWriter

void releaseWriteBehindLoaderWriter(CacheLoaderWriter<?,?> cacheLoaderWriter)
Releases a write-behind decorator when the associated Cache is finished with it.

Parameters:
cacheLoaderWriter - the CacheLoaderWriter to release