public static MemcacheService createProxy ( final MemcacheService raw , final int retryCount ) { return ( MemcacheService ) java . lang . reflect . Proxy . newProxyInstance ( raw . getClass ( ) . getClassLoader ( ) , raw . getClass ( ) . getInterfaces ( ) , new MemcacheServiceRetryProxy ( raw , retryCount ) ) ; }
Create the proxy that does retries . Adds a strict error handler to the service .