Package org.ehcache.spi.resilience
Interface RecoveryStore<K>
- Type Parameters:
K- store key type
public interface RecoveryStore<K>
A recovery store is used during entry cleanup done by the
ResilienceStrategy. It's called
when a org.ehcache.core.spi.store.Store failed on an entry. Implementations will in general want to get rid
of this entry which is what the recovery store is used for.
Note that the methods on this call with tend to fail since the store already failed once and caused the resilience strategy to be called.
-
Method Summary
Modifier and TypeMethodDescriptionvoidObliterate all keys in a store.default voidobliterate(Iterable<? extends K> keys) Obliterate a list of keys.voidobliterate(K key) Obliterate a given key.
-
Method Details
-
obliterate
Obliterate all keys in a store.- Throws:
StoreAccessException- in case of store failure
-
obliterate
Obliterate a given key.- Parameters:
key- the key to obliterate- Throws:
StoreAccessException- in case of store failure
-
obliterate
Obliterate a list of keys.- Parameters:
keys- keys to obliterate- Throws:
StoreAccessException- in case of store failure
-