@Override protected final boolean writeData(ByteBuffer data){
synchronized (guard) {
    LsServerPacket packet=sendMsgQueue.pollFirst();
    if (packet == null) {
      return false;
    }
    packet.write(this,data);
    return true;
  }
}

@ Override protected final boolean writeData ( ByteBuffer data ) { synchronized ( guard ) { LsServerPacket packet = sendMsgQueue . pollFirst ( ) ; if ( packet == null ) { return false ; } packet . write ( this , data ) ; return true ; } }
this method will be called by dispatcher , and will be repeated till return false .
