org.ehcache.core.resilience
Class LoggingRobustResilienceStrategy<K,V>

java.lang.Object
  extended by org.ehcache.core.resilience.RobustResilienceStrategy<K,V>
      extended by org.ehcache.core.resilience.LoggingRobustResilienceStrategy<K,V>
All Implemented Interfaces:
ResilienceStrategy<K,V>

public class LoggingRobustResilienceStrategy<K,V>
extends RobustResilienceStrategy<K,V>


Constructor Summary
LoggingRobustResilienceStrategy(RecoveryCache<K> store)
           
 
Method Summary
protected  void inconsistent(CacheAccessException because, CacheAccessException... cleanup)
           
protected  void inconsistent(java.lang.Iterable<? extends K> keys, CacheAccessException because, CacheAccessException... cleanup)
           
protected  void inconsistent(K key, CacheAccessException because, CacheAccessException... cleanup)
           
 Cache.Entry<K,V> iteratorFailure(CacheAccessException e)
          Called when a cache iterator advancement fails due to an underlying store failure.
protected  void recovered(CacheAccessException from)
           
protected  void recovered(java.lang.Iterable<? extends K> keys, CacheAccessException from)
           
protected  void recovered(K key, CacheAccessException from)
           
 
Methods inherited from class org.ehcache.core.resilience.RobustResilienceStrategy
clearFailure, containsKeyFailure, getAllFailure, getAllFailure, getAllFailure, getFailure, getFailure, getFailure, putAllFailure, putAllFailure, putFailure, putFailure, putIfAbsentFailure, putIfAbsentFailure, putIfAbsentFailure, removeAllFailure, removeAllFailure, removeFailure, removeFailure, removeFailure, removeFailure, removeFailure, replaceFailure, replaceFailure, replaceFailure, replaceFailure, replaceFailure, replaceFailure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingRobustResilienceStrategy

public LoggingRobustResilienceStrategy(RecoveryCache<K> store)
Method Detail

iteratorFailure

public Cache.Entry<K,V> iteratorFailure(CacheAccessException e)
Description copied from interface: ResilienceStrategy
Called when a cache iterator advancement fails due to an underlying store failure.

Parameters:
e - the triggered failure
Returns:
an entry to return on a failed iteration

recovered

protected void recovered(K key,
                         CacheAccessException from)
Specified by:
recovered in class RobustResilienceStrategy<K,V>

recovered

protected void recovered(java.lang.Iterable<? extends K> keys,
                         CacheAccessException from)
Specified by:
recovered in class RobustResilienceStrategy<K,V>

recovered

protected void recovered(CacheAccessException from)
Specified by:
recovered in class RobustResilienceStrategy<K,V>

inconsistent

protected void inconsistent(K key,
                            CacheAccessException because,
                            CacheAccessException... cleanup)
Specified by:
inconsistent in class RobustResilienceStrategy<K,V>

inconsistent

protected void inconsistent(java.lang.Iterable<? extends K> keys,
                            CacheAccessException because,
                            CacheAccessException... cleanup)
Specified by:
inconsistent in class RobustResilienceStrategy<K,V>

inconsistent

protected void inconsistent(CacheAccessException because,
                            CacheAccessException... cleanup)
Specified by:
inconsistent in class RobustResilienceStrategy<K,V>