List of usage examples for org.apache.http.nio.reactor ListeningIOReactor shutdown
void shutdown(long waitMs) throws IOException;
From source file:org.apache.synapse.transport.passthru.core.PassThroughListeningIOReactorManager.java
/** * ShutdownIOReactor which is registered by HTTPListener running on given port * * @param port Port of axis2 PTT Listener * @param miliSeconds Waiting Time before close IO Reactor * @throws IOException Exception throwing when Shutdown *///from ww w.j a v a2 s. c o m public void shutdownIOReactor(int port, long miliSeconds) throws IOException { ListeningIOReactor ioReactor = shutdownReactor(port); if (ioReactor != null) { try { ioReactor.shutdown(miliSeconds); } catch (IOException e) { throw new IOException( "IOException occurred when shutting down IOReactor for Listener started on port " + port, e); } passThroughListenerIOReactorMapper.remove(port); passThroughListenerServerIODispatchMapper.remove(port); } }