public T call() throws Exception { return wrapper.invoke(c); } };
public void run() { try { wrapper.invoke(r); } catch (Exception e) { throw new RuntimeException(e); } } };
public HttpResponse execute(final HttpHost host, final HttpRequest req, final HttpContext ctx) throws IOException, ClientProtocolException { try { return wrapper.invoke(new Callable<HttpResponse>() { public HttpResponse call() throws Exception { return backend.execute(host, req, ctx); } }); } catch (IOException ioe) { throw(ioe); } catch (RuntimeException re) { throw(re); } catch (Exception e) { throw new RuntimeException(e); } }
ServiceWrapper wrapper = methodMap.get(methodName); return wrapper.invoke(new Callable<Object>() { public Object call() throws Exception { try {
ServiceWrapper wrapper = serviceWrapper; return wrapper.invoke(new Callable<Object>() { public Object call() throws Exception { try {