/** * Write of ByteBuffer failed. * * @param cause * the cause of the failure */ @Override public void failed(Throwable cause) { failAll(cause); }
/** * Write of ByteBuffer failed. * * @param cause * the cause of the failure */ @Override public void failed(Throwable cause) { failAll(cause); }
private <C> void write(ByteBuffer buffer) { EndPoint endpoint = getEndPoint(); if (!isOpen()) { writeBytes.failAll(new IOException("Connection closed")); return; } try { endpoint.write(writeBytes,buffer); } catch (Throwable t) { writeBytes.failed(t); } } }
private <C> void write(ByteBuffer buffer) { EndPoint endpoint = getEndPoint(); if (!isOpen()) { writeBytes.failAll(new IOException("Connection closed")); return; } try { endpoint.write(writeBytes,buffer); } catch (Throwable t) { writeBytes.failed(t); } } }
writeBytes.failAll(new WebSocketException("Connection closed")); return;
writeBytes.failAll(new WebSocketException("Connection closed")); return;