|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ehcache.resilience.RobustResilienceStrategy<K,V>
public abstract class RobustResilienceStrategy<K,V>
| Constructor Summary | |
|---|---|
RobustResilienceStrategy(RecoveryCache<K> cache)
|
|
| Method Summary | |
|---|---|
void |
clearFailure(CacheAccessException e)
Called when a Cache.clear() fails due to an underlying store
failure. |
boolean |
containsKeyFailure(K key,
CacheAccessException e)
Called when a Cache.containsKey(java.lang.Object) fails due to an
underlying store failure, and the resultant cache load operation also fails. |
java.util.Map<K,V> |
getAllFailure(java.lang.Iterable<? extends K> keys,
CacheAccessException e)
Called when a Cache.getAll(java.util.Set) fails on a cache
without a cache loader due to an underlying store failure. |
java.util.Map<K,V> |
getAllFailure(java.lang.Iterable<? extends K> keys,
CacheAccessException e,
BulkCacheLoadingException f)
Called when a Cache.getAll(java.util.Set) fails on a cache
with a cache loader due to an underlying store failure, and the associated
cache write operation also failed. |
java.util.Map<K,V> |
getAllFailure(java.lang.Iterable<? extends K> keys,
java.util.Map<K,V> loaded,
CacheAccessException e)
Called when a Cache.getAll(java.util.Set) fails on a cache
with a cache loader due to an underlying store failure. |
V |
getFailure(K key,
CacheAccessException e)
Called when a Cache.get(java.lang.Object) fails on a cache without
a cache loader due to an underlying store failure. |
V |
getFailure(K key,
CacheAccessException e,
CacheLoadingException f)
Called when a Cache.get(java.lang.Object) fails on a cache with a
cache loader due to an underlying store failure. |
V |
getFailure(K key,
V loaded,
CacheAccessException e)
Called when a Cache.get(java.lang.Object) fails on a cache with a
cache loader due to an underlying store failure. |
protected abstract void |
inconsistent(CacheAccessException because,
CacheAccessException... cleanup)
|
protected abstract void |
inconsistent(java.lang.Iterable<? extends K> keys,
CacheAccessException because,
CacheAccessException... cleanup)
|
protected abstract void |
inconsistent(K key,
CacheAccessException because,
CacheAccessException... cleanup)
|
abstract void |
iteratorFailure(CacheAccessException e)
Called when a cache iterator advancement fails due to an underlying store failure. |
void |
putAllFailure(java.util.Map<? extends K,? extends V> entries,
CacheAccessException e)
Called when a Cache.putAll(java.util.Map) fails due to an
underlying store failure. |
void |
putAllFailure(java.util.Map<? extends K,? extends V> entries,
CacheAccessException e,
BulkCacheWritingException f)
Called when a Cache.putAll(java.util.Map) fails due to an
underlying store failure, and the associated cache write operation also
failed. |
void |
putFailure(K key,
V value,
CacheAccessException e)
Called when a Cache.put(java.lang.Object, java.lang.Object) fails
due to an underlying store failure. |
void |
putFailure(K key,
V value,
CacheAccessException e,
CacheWritingException f)
Called when a Cache.put(java.lang.Object, java.lang.Object) fails
due to an underlying store failure, and the associated cache write
operation also failed. |
V |
putIfAbsentFailure(K key,
V value,
CacheAccessException e,
boolean knownToBeAbsent)
Called when a Cache.putIfAbsent(java.lang.Object, java.lang.Object)
fails due to an underlying store failure. |
V |
putIfAbsentFailure(K key,
V value,
CacheAccessException e,
CacheLoadingException f)
Called when a Cache.putIfAbsent(java.lang.Object, java.lang.Object)
fails due to an underlying store failure, and the associated cache load
operation also failed. |
V |
putIfAbsentFailure(K key,
V value,
CacheAccessException e,
CacheWritingException f)
Called when a Cache.putIfAbsent(java.lang.Object, java.lang.Object)
fails due to an underlying store failure, and the associated cache write
operation also failed. |
protected abstract void |
recovered(CacheAccessException from)
|
protected abstract void |
recovered(java.lang.Iterable<? extends K> keys,
CacheAccessException from)
|
protected abstract void |
recovered(K key,
CacheAccessException from)
|
java.util.Map<K,V> |
removeAllFailure(java.lang.Iterable<? extends K> entries,
CacheAccessException e)
Called when a Cache.removeAll(java.util.Set) fails due to an
underlying store failure. |
java.util.Map<K,V> |
removeAllFailure(java.lang.Iterable<? extends K> entries,
CacheAccessException e,
BulkCacheWritingException f)
Called when a Cache.removeAll(java.util.Set) fails
due to an underlying store failure, and the associated cache write
operation also failed. |
void |
removeFailure(K key,
CacheAccessException e)
Called when a Cache.remove(java.lang.Object) fails due to an
underlying store failure. |
void |
removeFailure(K key,
CacheAccessException e,
CacheWritingException f)
Called when a Cache.remove(java.lang.Object) fails
due to an underlying store failure, and the associated cache write
operation also failed. |
boolean |
removeFailure(K key,
V value,
CacheAccessException e,
boolean knownToBePresent)
Called when a Cache.remove(java.lang.Object, java.lang.Object)
fails due to an underlying store failure. |
boolean |
removeFailure(K key,
V value,
CacheAccessException e,
CacheLoadingException f)
Called when a Cache.remove(java.lang.Object, java.lang.Object)
fails due to an underlying store failure, and the associated cache load
operation also failed. |
boolean |
removeFailure(K key,
V value,
CacheAccessException e,
CacheWritingException f)
Called when a Cache.remove(java.lang.Object, java.lang.Object)
fails due to an underlying store failure, and the associated cache write
operation also failed. |
V |
replaceFailure(K key,
V value,
CacheAccessException e)
Called when a Cache.replace(java.lang.Object, java.lang.Object)
fails due to an underlying store failure. |
V |
replaceFailure(K key,
V value,
CacheAccessException e,
CacheLoadingException f)
Called when a Cache.replace(java.lang.Object, java.lang.Object)
fails due to an underlying store failure, and the associated cache load
operation also failed. |
V |
replaceFailure(K key,
V value,
CacheAccessException e,
CacheWritingException f)
Called when a Cache.replace(java.lang.Object, java.lang.Object)
fails due to an underlying store failure, and the associated cache write
operation also failed. |
boolean |
replaceFailure(K key,
V value,
V newValue,
CacheAccessException e,
boolean knownToMatch)
Called when a Cache.replace(java.lang.Object, java.lang.Object, java.lang.Object)
fails due to an underlying store failure. |
boolean |
replaceFailure(K key,
V value,
V newValue,
CacheAccessException e,
CacheLoadingException f)
Called when a Cache.replace(java.lang.Object, java.lang.Object, java.lang.Object)
fails due to an underlying store failure, and the associated cache load
operation also failed. |
boolean |
replaceFailure(K key,
V value,
V newValue,
CacheAccessException e,
CacheWritingException f)
Called when a Cache.replace(java.lang.Object, java.lang.Object, java.lang.Object)
fails due to an underlying store failure, and the associated cache write
operation also failed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RobustResilienceStrategy(RecoveryCache<K> cache)
| Method Detail |
|---|
public V getFailure(K key,
CacheAccessException e)
ResilienceStrategyCache.get(java.lang.Object) fails on a cache without
a cache loader due to an underlying store failure.
getFailure in interface ResilienceStrategy<K,V>key - the key being retrievede - the triggered failure
public V getFailure(K key,
V loaded,
CacheAccessException e)
ResilienceStrategyCache.get(java.lang.Object) fails on a cache with a
cache loader due to an underlying store failure.
getFailure in interface ResilienceStrategy<K,V>key - the key being retrievedloaded - the value from the loadere - the triggered failure
public V getFailure(K key,
CacheAccessException e,
CacheLoadingException f)
ResilienceStrategyCache.get(java.lang.Object) fails on a cache with a
cache loader due to an underlying store failure.
getFailure in interface ResilienceStrategy<K,V>key - the key being retrievede - the cache failuref - the loader failure
public boolean containsKeyFailure(K key,
CacheAccessException e)
ResilienceStrategyCache.containsKey(java.lang.Object) fails due to an
underlying store failure, and the resultant cache load operation also fails.
containsKeyFailure in interface ResilienceStrategy<K,V>key - the key being queriede - the triggered failure
public void putFailure(K key,
V value,
CacheAccessException e)
ResilienceStrategyCache.put(java.lang.Object, java.lang.Object) fails
due to an underlying store failure.
putFailure in interface ResilienceStrategy<K,V>key - the key being putvalue - the value being pute - the triggered failure
public void putFailure(K key,
V value,
CacheAccessException e,
CacheWritingException f)
ResilienceStrategyCache.put(java.lang.Object, java.lang.Object) fails
due to an underlying store failure, and the associated cache write
operation also failed.
putFailure in interface ResilienceStrategy<K,V>key - the key being putvalue - the value being pute - the cache failuref - the writer failure
public void removeFailure(K key,
CacheAccessException e)
ResilienceStrategyCache.remove(java.lang.Object) fails due to an
underlying store failure.
removeFailure in interface ResilienceStrategy<K,V>key - the key being removede - the triggered failure
public void removeFailure(K key,
CacheAccessException e,
CacheWritingException f)
ResilienceStrategyCache.remove(java.lang.Object) fails
due to an underlying store failure, and the associated cache write
operation also failed.
removeFailure in interface ResilienceStrategy<K,V>key - the key being removede - the cache failuref - the writer failurepublic void clearFailure(CacheAccessException e)
ResilienceStrategyCache.clear() fails due to an underlying store
failure.
clearFailure in interface ResilienceStrategy<K,V>e - the triggered failurepublic abstract void iteratorFailure(CacheAccessException e)
ResilienceStrategy
iteratorFailure in interface ResilienceStrategy<K,V>e - the triggered failure
public V putIfAbsentFailure(K key,
V value,
CacheAccessException e,
boolean knownToBeAbsent)
ResilienceStrategyCache.putIfAbsent(java.lang.Object, java.lang.Object)
fails due to an underlying store failure.
If it is known at the time of calling that the key is absent from the cache
(and the writer if one is present) then knownToBeAbsent will be
true.
putIfAbsentFailure in interface ResilienceStrategy<K,V>key - the key being putvalue - the value being pute - the triggered failureknownToBeAbsent - true if the value is known to be absent
public V putIfAbsentFailure(K key,
V value,
CacheAccessException e,
CacheWritingException f)
ResilienceStrategyCache.putIfAbsent(java.lang.Object, java.lang.Object)
fails due to an underlying store failure, and the associated cache write
operation also failed.
putIfAbsentFailure in interface ResilienceStrategy<K,V>key - the key being putvalue - the value being pute - the cache failuref - the writer failure
public V putIfAbsentFailure(K key,
V value,
CacheAccessException e,
CacheLoadingException f)
ResilienceStrategyCache.putIfAbsent(java.lang.Object, java.lang.Object)
fails due to an underlying store failure, and the associated cache load
operation also failed.
putIfAbsentFailure in interface ResilienceStrategy<K,V>key - the key being putvalue - the value being pute - the cache failuref - the loader failure
public boolean removeFailure(K key,
V value,
CacheAccessException e,
boolean knownToBePresent)
ResilienceStrategyCache.remove(java.lang.Object, java.lang.Object)
fails due to an underlying store failure.
If it is known at the time of calling that the targeted mapping is present
in the cache (or the writer if one is present) then knownToBePresent
will be true.
removeFailure in interface ResilienceStrategy<K,V>key - the key being removedvalue - the value being removede - the triggered failureknownToBePresent - true if the value is known to be present
public boolean removeFailure(K key,
V value,
CacheAccessException e,
CacheWritingException f)
ResilienceStrategyCache.remove(java.lang.Object, java.lang.Object)
fails due to an underlying store failure, and the associated cache write
operation also failed.
removeFailure in interface ResilienceStrategy<K,V>key - the key being removedvalue - the value being removede - the cache failuref - the writer failure
public boolean removeFailure(K key,
V value,
CacheAccessException e,
CacheLoadingException f)
ResilienceStrategyCache.remove(java.lang.Object, java.lang.Object)
fails due to an underlying store failure, and the associated cache load
operation also failed.
removeFailure in interface ResilienceStrategy<K,V>key - the key being removedvalue - the value being removede - the cache failuref - the loader failure
public V replaceFailure(K key,
V value,
CacheAccessException e)
ResilienceStrategyCache.replace(java.lang.Object, java.lang.Object)
fails due to an underlying store failure.
replaceFailure in interface ResilienceStrategy<K,V>key - the key being replacedvalue - the value being replacede - the triggered failure
public V replaceFailure(K key,
V value,
CacheAccessException e,
CacheWritingException f)
ResilienceStrategyCache.replace(java.lang.Object, java.lang.Object)
fails due to an underlying store failure, and the associated cache write
operation also failed.
replaceFailure in interface ResilienceStrategy<K,V>key - the key being replacedvalue - the value being replacede - the cache failuref - the writer failure
public V replaceFailure(K key,
V value,
CacheAccessException e,
CacheLoadingException f)
ResilienceStrategyCache.replace(java.lang.Object, java.lang.Object)
fails due to an underlying store failure, and the associated cache load
operation also failed.
replaceFailure in interface ResilienceStrategy<K,V>key - the key being replacedvalue - the value being replacede - the cache failuref - the loader failure
public boolean replaceFailure(K key,
V value,
V newValue,
CacheAccessException e,
boolean knownToMatch)
ResilienceStrategyCache.replace(java.lang.Object, java.lang.Object, java.lang.Object)
fails due to an underlying store failure.
If it is known at the time of calling that the target mapping is present
in the cache (or the writer if one is present) then knownToBeMatch
will be true.
replaceFailure in interface ResilienceStrategy<K,V>key - the key being replacedvalue - the expected valuenewValue - the replacement valuee - the triggered failureknownToMatch - true if the value is known to match
public boolean replaceFailure(K key,
V value,
V newValue,
CacheAccessException e,
CacheWritingException f)
ResilienceStrategyCache.replace(java.lang.Object, java.lang.Object, java.lang.Object)
fails due to an underlying store failure, and the associated cache write
operation also failed.
replaceFailure in interface ResilienceStrategy<K,V>key - the key being replacedvalue - the expected valuenewValue - the replacement valuee - the cache failuref - the writer failure
public boolean replaceFailure(K key,
V value,
V newValue,
CacheAccessException e,
CacheLoadingException f)
ResilienceStrategyCache.replace(java.lang.Object, java.lang.Object, java.lang.Object)
fails due to an underlying store failure, and the associated cache load
operation also failed.
replaceFailure in interface ResilienceStrategy<K,V>key - the key being replacedvalue - the expected valuenewValue - the replacement valuee - the cache failuref - the loader failure
public java.util.Map<K,V> getAllFailure(java.lang.Iterable<? extends K> keys,
CacheAccessException e)
ResilienceStrategyCache.getAll(java.util.Set) fails on a cache
without a cache loader due to an underlying store failure.
getAllFailure in interface ResilienceStrategy<K,V>keys - the keys being retrievede - the triggered failure
public java.util.Map<K,V> getAllFailure(java.lang.Iterable<? extends K> keys,
java.util.Map<K,V> loaded,
CacheAccessException e)
ResilienceStrategyCache.getAll(java.util.Set) fails on a cache
with a cache loader due to an underlying store failure.
getAllFailure in interface ResilienceStrategy<K,V>keys - the keys being retrievedloaded - the values from the loadere - the triggered failure
public java.util.Map<K,V> getAllFailure(java.lang.Iterable<? extends K> keys,
CacheAccessException e,
BulkCacheLoadingException f)
ResilienceStrategyCache.getAll(java.util.Set) fails on a cache
with a cache loader due to an underlying store failure, and the associated
cache write operation also failed.
getAllFailure in interface ResilienceStrategy<K,V>keys - the keys being retrievede - the cache failuref - the writer failure
public void putAllFailure(java.util.Map<? extends K,? extends V> entries,
CacheAccessException e)
ResilienceStrategyCache.putAll(java.util.Map) fails due to an
underlying store failure.
putAllFailure in interface ResilienceStrategy<K,V>entries - the entries being pute - the triggered failure
public void putAllFailure(java.util.Map<? extends K,? extends V> entries,
CacheAccessException e,
BulkCacheWritingException f)
ResilienceStrategyCache.putAll(java.util.Map) fails due to an
underlying store failure, and the associated cache write operation also
failed.
putAllFailure in interface ResilienceStrategy<K,V>entries - the entries being pute - the cache failuref - the writer failure
public java.util.Map<K,V> removeAllFailure(java.lang.Iterable<? extends K> entries,
CacheAccessException e)
ResilienceStrategyCache.removeAll(java.util.Set) fails due to an
underlying store failure.
removeAllFailure in interface ResilienceStrategy<K,V>entries - the keys being removede - the triggered failure
public java.util.Map<K,V> removeAllFailure(java.lang.Iterable<? extends K> entries,
CacheAccessException e,
BulkCacheWritingException f)
ResilienceStrategyCache.removeAll(java.util.Set) fails
due to an underlying store failure, and the associated cache write
operation also failed.
removeAllFailure in interface ResilienceStrategy<K,V>entries - the keys being removede - the cache failuref - the writer failure
protected abstract void recovered(K key,
CacheAccessException from)
protected abstract void recovered(java.lang.Iterable<? extends K> keys,
CacheAccessException from)
protected abstract void recovered(CacheAccessException from)
protected abstract void inconsistent(K key,
CacheAccessException because,
CacheAccessException... cleanup)
protected abstract void inconsistent(java.lang.Iterable<? extends K> keys,
CacheAccessException because,
CacheAccessException... cleanup)
protected abstract void inconsistent(CacheAccessException because,
CacheAccessException... cleanup)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||