public interface ResilienceStrategyProvider extends Service
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.
| Modifier and Type | Method and Description |
|---|---|
<K,V> ResilienceStrategy<K,V> |
createResilienceStrategy(java.lang.String alias,
CacheConfiguration<K,V> configuration,
RecoveryStore<K> recoveryStore)
Creates a
ResilienceStrategy for the Cache with the given alias and configuration
using the given RecoveryStore. |
<K,V> ResilienceStrategy<K,V> |
createResilienceStrategy(java.lang.String alias,
CacheConfiguration<K,V> configuration,
RecoveryStore<K> recoveryStore,
CacheLoaderWriter<? super K,V> loaderWriter)
Creates a
ResilienceStrategy for the Cache with the given alias and configuration
using the given RecoveryStore and CacheLoaderWriter |
<K,V> ResilienceStrategy<K,V> createResilienceStrategy(java.lang.String alias, CacheConfiguration<K,V> configuration, RecoveryStore<K> recoveryStore)
ResilienceStrategy for the Cache with the given alias and configuration
using the given RecoveryStore.K - the stores key typeV - the stores value typealias - the Cache alias in the CacheManagerconfiguration - the configuration for the associated cacherecoveryStore - the associated recovery storeResilienceStrategy to be used by the Cache<K,V> ResilienceStrategy<K,V> createResilienceStrategy(java.lang.String alias, CacheConfiguration<K,V> configuration, RecoveryStore<K> recoveryStore, CacheLoaderWriter<? super K,V> loaderWriter)
ResilienceStrategy for the Cache with the given alias and configuration
using the given RecoveryStore and CacheLoaderWriterK - the stores key typeV - the stores value typealias - the Cache alias in the CacheManagerconfiguration - the configuration for the associated cacherecoveryStore - the associated recovery storeloaderWriter - the associated loader-writerResilienceStrategy to be used by the Cache