List of usage examples for org.apache.http.nio NHttpServerEventHandler timeout
void timeout(NHttpServerConnection conn) throws IOException;
From source file:org.apache.synapse.transport.passthru.core.MultiListenerServerIODispatch.java
@Override protected void onTimeout(final DefaultNHttpServerConnection defaultNHttpServerConnection) { int localPort = defaultNHttpServerConnection.getLocalPort(); NHttpServerEventHandler handler = handlers.get(localPort); try {/*from ww w . j a va2s . c o m*/ handler.timeout(defaultNHttpServerConnection); } catch (final Exception ex) { handler.exception(defaultNHttpServerConnection, ex); } }