Package org.ehcache.spi.resilience
Interface ResilienceStrategyProvider
-
- All Superinterfaces:
Service
public interface ResilienceStrategyProvider extends Service
AServicethat createsResilienceStrategyinstances.A
CacheManagerwill use thecreateResilienceStrategy(String, CacheConfiguration, RecoveryStore)andcreateResilienceStrategy(String, CacheConfiguration, RecoveryStore, CacheLoaderWriter)methods to createResilienceStrategyinstances for eachCacheit manages.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <K,V>
ResilienceStrategy<K,V>createResilienceStrategy(java.lang.String alias, CacheConfiguration<K,V> configuration, RecoveryStore<K> recoveryStore)Creates aResilienceStrategyfor theCachewith the given alias and configuration using the givenRecoveryStore.<K,V>
ResilienceStrategy<K,V>createResilienceStrategy(java.lang.String alias, CacheConfiguration<K,V> configuration, RecoveryStore<K> recoveryStore, CacheLoaderWriter<? super K,V> loaderWriter)Creates aResilienceStrategyfor theCachewith the given alias and configuration using the givenRecoveryStoreandCacheLoaderWriter
-
-
-
Method Detail
-
createResilienceStrategy
<K,V> ResilienceStrategy<K,V> createResilienceStrategy(java.lang.String alias, CacheConfiguration<K,V> configuration, RecoveryStore<K> recoveryStore)
Creates aResilienceStrategyfor theCachewith the given alias and configuration using the givenRecoveryStore.- Type Parameters:
K- the stores key typeV- the stores value type- Parameters:
alias- theCachealias in theCacheManagerconfiguration- the configuration for the associated cacherecoveryStore- the associated recovery store- Returns:
- the
ResilienceStrategyto be used by theCache
-
createResilienceStrategy
<K,V> ResilienceStrategy<K,V> createResilienceStrategy(java.lang.String alias, CacheConfiguration<K,V> configuration, RecoveryStore<K> recoveryStore, CacheLoaderWriter<? super K,V> loaderWriter)
Creates aResilienceStrategyfor theCachewith the given alias and configuration using the givenRecoveryStoreandCacheLoaderWriter- Type Parameters:
K- the stores key typeV- the stores value type- Parameters:
alias- theCachealias in theCacheManagerconfiguration- the configuration for the associated cacherecoveryStore- the associated recovery storeloaderWriter- the associated loader-writer- Returns:
- the
ResilienceStrategyto be used by theCache
-
-