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.
Constructor and Description |
---|
MemcacheServiceRetryProxy() |
Modifier and Type | Method and 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) |
public static MemcacheService createProxy(MemcacheService raw)
public static MemcacheService createProxy(MemcacheService raw, int retryCount)
Copyright © 2018. All rights reserved.