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 theResilienceStrategy. It's called when aorg.ehcache.core.spi.store.Storefailed 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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidobliterate()Obliterate all keys in a store.default voidobliterate(java.lang.Iterable<? extends K> keys)Obliterate a list of keys.voidobliterate(K key)Obliterate a given key.
-
-
-
Method Detail
-
obliterate
void obliterate() throws StoreAccessExceptionObliterate all keys in a store.- Throws:
StoreAccessException- in case of store failure
-
obliterate
void obliterate(K key) throws StoreAccessException
Obliterate a given key.- Parameters:
key- the key to obliterate- Throws:
StoreAccessException- in case of store failure
-
obliterate
default void obliterate(java.lang.Iterable<? extends K> keys) throws StoreAccessException
Obliterate a list of keys.- Parameters:
keys- keys to obliterate- Throws:
StoreAccessException- in case of store failure
-
-