- All Superinterfaces:
public interface ConsistentErrorHandler extends ErrorHandlerA marker interface to indicate that all
MemcacheServiceExceptionexceptions should be handled by
ErrorHandler.handleServiceError(MemcacheServiceException). This interface was added to enable handling
MemcacheServiceExceptionthrown by the various
MemcacheService.put(Object, Object)methods while preserving backward compatibility with
ErrorHandlerwhich did not handle such cases.
void handleDeserializationError(InvalidValueException ivx)Description copied from interface:
ErrorHandlerHandles deserialization errors. This method is called from either of the
getmethods, if the retrieved value cannot be deserialized. This normally indicates an application upgrade since the cache entry was stored, and should thus be treated as a cache miss, which is the behavior of
void handleServiceError(MemcacheServiceException ex)Description copied from interface:
ErrorHandlerHandles back-end service errors. This method is called from most of the
MemcacheServicemethods in the event of a service error. The handler may throw any
RuntimeException, or it may simply return for "permissive" error handling, which will generally emulate behavior of a cache miss due to a discarded entry.