Package com.googlecode.objectify.cache
Class MemcacheServiceRetryProxy
- java.lang.Object
-
- com.googlecode.objectify.cache.MemcacheServiceRetryProxy
-
- All Implemented Interfaces:
InvocationHandler
public class MemcacheServiceRetryProxy extends Object implements InvocationHandler
Dynamic proxy which wraps a MemcacheService and adds retries when an exception occurs. It logs and masks exceptions on complete failure.
- Author:
- Jeff Schnitzer
-
-
Constructor Summary
Constructors Constructor Description MemcacheServiceRetryProxy()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MemcacheService
createProxy(MemcacheService raw)
Create the proxy that does retries.static MemcacheService
createProxy(MemcacheService raw, int retryCount)
Create the proxy that does retries.Object
invoke(Object proxy, Method meth, Object[] args)
-
-
-
Method Detail
-
createProxy
public static MemcacheService createProxy(MemcacheService raw)
Create the proxy that does retries. Adds a strict error handler to the service.
-
createProxy
public static MemcacheService createProxy(MemcacheService raw, int retryCount)
Create the proxy that does retries. Adds a strict error handler to the service.
-
-