/** * This is used to perform the drain of the pending buffer * queue. This will drain each pending queue if the socket is * write ready. If the socket is not write ready the operation * is enqueued for selection and this returns. This ensures * that all the data will eventually be delivered. */ public void run() { try { writer.execute(); } catch(Exception cause) { trace.trace(ERROR, cause); cancel(); } }
/** * This is used to perform the drain of the pending buffer * queue. This will drain each pending queue if the socket is * write ready. If the socket is not write ready the operation * is enqueued for selection and this returns. This ensures * that all the data will eventually be delivered. */ public void run() { try { writer.execute(); } catch(Exception cause) { trace.trace(ERROR, cause); cancel(); } }