public void shutdown() throws InterruptedException {
    selector.wakeup();
    super.shutdown();
  }
Initiates a graceful shutdown by signaling to stop and waiting for the shutdown to complete
ambry-network/src/main/java/com/github/ambry/network/SocketServer.java