public synchronized void enqueueWriteRequest(final NextFilter nextFilter,final WriteRequest writeRequest){
  if (writeRequestQueue == null) {
    writeRequestQueue=new LinkedList<Event>();
  }
  writeRequestQueue.offer(new Event(nextFilter,writeRequest));
}

public synchronized void enqueueWriteRequest ( final NextFilter nextFilter , final WriteRequest writeRequest ) { if ( writeRequestQueue == null ) { writeRequestQueue = new LinkedList < Event > ( ) ; } writeRequestQueue . offer ( new Event ( nextFilter , writeRequest ) ) ; }
enqueue a message to be written once handshaking is complete .
