K
- store key typepublic interface RecoveryStore<K>
ResilienceStrategy
. It's called
when a 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.
Modifier and Type | Method and Description |
---|---|
void |
obliterate()
Obliterate all keys in a store.
|
default void |
obliterate(java.lang.Iterable<? extends K> keys)
Obliterate a list of keys.
|
void |
obliterate(K key)
Obliterate a given key.
|
void obliterate() throws StoreAccessException
StoreAccessException
- in case of store failurevoid obliterate(K key) throws StoreAccessException
key
- the key to obliterateStoreAccessException
- in case of store failuredefault void obliterate(java.lang.Iterable<? extends K> keys) throws StoreAccessException
keys
- keys to obliterateStoreAccessException
- in case of store failure