Code example for ExecutorService

Methods: shutdown

0
            }); 
        } 
 
        public void shutdown() throws IOException { 
            serverSocket.close();
            executor.shutdown();
        } 
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java