@Override public synchronized void flush() throws IOException { if (lastWriteFuture == null) { return; } lastWriteFuture.join(); if (!lastWriteFuture.isWritten()) { throw new IOException( "The bytes could not be written to the session"); } } }
@Override public synchronized void flush() throws IOException { m_log.debug("Flushing IoSession output stream..."); if (m_lastWriteFuture == null) { return; } m_lastWriteFuture.join(); if (!m_lastWriteFuture.isWritten()) { throw new IOException( "The bytes could not be written to the session"); } } }