com.whalin.MemCached
Interface ErrorHandler


public interface ErrorHandler

You can customize your error handle processes in this class.


Method Summary
 void handleErrorOnDelete(MemCachedClient client, Throwable error, String cacheKey)
          Called for errors thrown during MemCachedClient.delete(String) and related methods.
 void handleErrorOnFlush(MemCachedClient client, Throwable error)
          Called for errors thrown during MemCachedClient.flushAll() and related methods.
 void handleErrorOnGet(MemCachedClient client, Throwable error, String cacheKey)
          Called for errors thrown during MemCachedClient.get(String) and related methods.
 void handleErrorOnGet(MemCachedClient client, Throwable error, String[] cacheKeys)
          Called for errors thrown during MemCachedClient#getMulti(String) and related methods.
 void handleErrorOnInit(MemCachedClient client, Throwable error)
          Called for errors thrown during initialization.
 void handleErrorOnSet(MemCachedClient client, Throwable error, String cacheKey)
          Called for errors thrown during MemCachedClient.set(String,Object) and related methods.
 void handleErrorOnStats(MemCachedClient client, Throwable error)
          Called for errors thrown during MemCachedClient.stats() and related methods.
 

Method Detail

handleErrorOnInit

void handleErrorOnInit(MemCachedClient client,
                       Throwable error)
Called for errors thrown during initialization.


handleErrorOnGet

void handleErrorOnGet(MemCachedClient client,
                      Throwable error,
                      String cacheKey)
Called for errors thrown during MemCachedClient.get(String) and related methods.


handleErrorOnGet

void handleErrorOnGet(MemCachedClient client,
                      Throwable error,
                      String[] cacheKeys)
Called for errors thrown during MemCachedClient#getMulti(String) and related methods.


handleErrorOnSet

void handleErrorOnSet(MemCachedClient client,
                      Throwable error,
                      String cacheKey)
Called for errors thrown during MemCachedClient.set(String,Object) and related methods.


handleErrorOnDelete

void handleErrorOnDelete(MemCachedClient client,
                         Throwable error,
                         String cacheKey)
Called for errors thrown during MemCachedClient.delete(String) and related methods.


handleErrorOnFlush

void handleErrorOnFlush(MemCachedClient client,
                        Throwable error)
Called for errors thrown during MemCachedClient.flushAll() and related methods.


handleErrorOnStats

void handleErrorOnStats(MemCachedClient client,
                        Throwable error)
Called for errors thrown during MemCachedClient.stats() and related methods.



Copyright © 2012 Schooner Information Technology. All Rights Reserved.