public boolean setResult(final T result) { try { return output.setResult(translate(result)); } catch (IOException e) { return output.setException(e); } }
public void handleFailed(final IOException exception, final Result<T> attachment) { if (remaining-- == 0) { result.setException( new IOException("Failed to create channel after " + maxTries + " tries", exception)); return; } tryOne(attachment); }
public void handleFailed(final IOException exception, final Result<T> result) { result.setException(exception); }
public boolean setException(final IOException exception) { return output.setException(exception); }