Interface ResilienceStrategyProvider

    • Method Detail

      • createResilienceStrategy

        <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.
        Type Parameters:
        K - the stores key type
        V - the stores value type
        Parameters:
        alias - the Cache alias in the CacheManager
        configuration - the configuration for the associated cache
        recoveryStore - the associated recovery store
        Returns:
        the ResilienceStrategy to be used by the Cache
      • createResilienceStrategy

        <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
        Type Parameters:
        K - the stores key type
        V - the stores value type
        Parameters:
        alias - the Cache alias in the CacheManager
        configuration - the configuration for the associated cache
        recoveryStore - the associated recovery store
        loaderWriter - the associated loader-writer
        Returns:
        the ResilienceStrategy to be used by the Cache