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
 

Method Detail

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 failed
value - for which operation failed , null in case of delete
e - the exception with which the operation failed