Package org.ehcache.spi.resilience
Interface ResilienceStrategyProvider
- All Superinterfaces:
Service
A
Service that creates ResilienceStrategy instances.
A CacheManager will use the createResilienceStrategy(String, CacheConfiguration, RecoveryStore) and
createResilienceStrategy(String, CacheConfiguration, RecoveryStore, CacheLoaderWriter) methods to create
ResilienceStrategy instances for each Cache it manages.
-
Method Summary
Modifier and TypeMethodDescription<K,V> ResilienceStrategy<K, V> createResilienceStrategy(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(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 Details
-
createResilienceStrategy
<K,V> ResilienceStrategy<K,V> createResilienceStrategy(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(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
-