Package com.googlecode.objectify.cache
Class MemcacheServiceRetryProxy
java.lang.Object
com.googlecode.objectify.cache.MemcacheServiceRetryProxy
- All Implemented Interfaces:
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 invalid input: '<'[email protected]>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic MemcacheService
Create the proxy that does retries.static MemcacheService
createProxy
(MemcacheService raw, int retryCount) Create the proxy that does retries.
-
Constructor Details
-
MemcacheServiceRetryProxy
public MemcacheServiceRetryProxy()
-
-
Method Details
-
createProxy
Create the proxy that does retries. Adds a strict error handler to the service. -
createProxy
Create the proxy that does retries. Adds a strict error handler to the service. -
invoke
- Specified by:
invoke
in interfaceInvocationHandler
- Throws:
Throwable
-