@Override public void onContent(Response response, ByteBuffer content, Callback callback) { try { listener.onContent(response, content); callback.succeeded(); } catch (Throwable x) { callback.failed(x); } } });
private void notifyContent(Response.ContentListener listener, Response response, ByteBuffer buffer) { try { listener.onContent(response, buffer); } catch (Exception x) { LOG.info("Exception while notifying listener " + listener, x); } }
private void notifyContent(Response.ContentListener listener, Response response, ByteBuffer buffer) { try { listener.onContent(response, buffer); } catch (Exception x) { LOG.info("Exception while notifying listener " + listener, x); } }