org.ehcache.config.writebehind
Interface ResilientCacheWriter<K,V>
public interface ResilientCacheWriter<K,V>
This interface allows user to know the failed operations for a particular key.
For a loaderwriter to be resilient, the user will have to implement this interface
This is required to handle failures during processing in WriteBeindQueue
Method Summary |
void |
throwAway(K key,
V value,
java.lang.Exception e)
This method gets called after all retry attempts to complete the operation
are exhausted |
throwAway
void throwAway(K key,
V value,
java.lang.Exception e)
- This method gets called after all retry attempts to complete the operation
are exhausted
- Parameters:
key
- Key for which the operation failedvalue
- for which operation failed , null in case of deletee
- the exception with which the operation failed