private void startupAcceptor() throws InterruptedException {
  if (!selectable) {
    registerQueue.clear();
    cancelQueue.clear();
    flushingSessions.clear();
  }
  lock.acquire();
  if (acceptor == null) {
    acceptor=new Acceptor();
    executeWorker(acceptor);
  }
 else {
    lock.release();
  }
}

private void startupAcceptor ( ) throws InterruptedException { if ( ! selectable ) { registerQueue . clear ( ) ; cancelQueue . clear ( ) ; flushingSessions . clear ( ) ; } lock . acquire ( ) ; if ( acceptor == null ) { acceptor = new Acceptor ( ) ; executeWorker ( acceptor ) ; } else { lock . release ( ) ; } }
starts the inner acceptor thread .
