@Override public synchronized void stop(){
  if (running) {
    LOGGER.info("Stopping server");
    for (    Endpoint ep : endpoints) {
      ep.stop();
    }
    running=false;
  }
}

@ Override public synchronized void stop ( ) { if ( running ) { LOGGER . info ( "Stopping server" ) ; for ( Endpoint ep : endpoints ) { ep . stop ( ) ; } running = false ; } }
stops the server , i . e . , unbinds it from all ports . frees as much system resources as possible to still be able to be re - started with the previous binds .
