code: public void flushPendingSessionEvents() throws Exception {
          synchronized (sessionEventsQueue) {
              IoSessionEvent evt;
              
              while ((evt = sessionEventsQueue.poll()) != null) {
                  logger.debug(" Flushing buffered event: {}", evt);    
                  evt.deliverEvent();
              }
          }
      }
docs: Send any session event which were queued while waiting for handshaking to complete.
  
  Please note this is an internal method. DO NOT USE it in your code.