@Override public void failed(IOException ioe) { wrappee.failed(ioe); } @Override
@Override public void failed(IOException ioe) { wrappee.failed(ioe); } @Override
@Override public void failed(IOException ioe) { wrappee.failed(ioe); } @Override
@Override public void failed(IOException ioe) { wrappee.failed(ioe); }
@Override public void failed(IOException e) { if (closed) { return; } closed = true; try { out.close(); } catch (IOException ce) { } wrappee.failed(e); }
private void fail(IOException ioe) { LOGGER.error("SSL error", ioe); doClose(); if (!closed) { closed = true; callback.failed(ioe); } }
@Override public void run() { if (closed) { callback.failed(new IOException("Closed")); return; } connection = callback; callback.connected(null); } });
public void failAllNext(IOException ioe) { Deque<Connection> nr = nextReceivers; nextReceivers = null; receiver = null; connecting.close(); if (nr != null) { IOException e = new IOException("Error in pipeline", ioe); for (Connection r : nr) { r.failed(e); } } }
@Override public void failed(IOException ioe) { lock.fail(ioe); wrappee.failed(ioe); } @Override
@Override public void run() { if (closed) { callback.failed(new IOException("Closed")); return; } connection = callback; callback.connected(null); } });
@Override public void close() { if (closed) { return; } closed = true; try { out.close(); wrappee.closed(); } catch (IOException ce) { wrappee.failed(ce); } }
@Override public void received(Address address, ByteBuffer buffer) { if (closed) { return; } try { out.write(buffer.array(), buffer.arrayOffset() + buffer.position(), buffer.remaining()); wrappee.received(address, buffer); } catch (IOException e) { try { out.close(); } catch (IOException ce) { } closed = true; wrappee.failed(e); } buffer.position(buffer.position() + buffer.remaining()); }
@Override public void run() { int code; try { code = p.waitFor(); } catch (InterruptedException e) { code = -1; } try { error.close(); } catch (IOException e) { } try { input.close(); } catch (IOException e) { } p.destroy(); s.close(); if (code != 0) { callback.failed(new IOException("Non zero return code from tcpdump: " + code)); } else { callback.closed(); } } });
} catch (IOException e) { disconnect(channel, inboundKey, null, null, e); callback.failed(new IOException("Could not bind to: " + bindAddress, e)); return; } catch (IOException e) { disconnect(channel, inboundKey, null, null, e); callback.failed(new IOException("Could not connect to: " + connectAddress, e)); return; callback.failed(e); return; callback.failed(ee); return;