public void start() throws IOException { if (this.status.compareAndSet(Status.READY, Status.ACTIVE)) { this.endpoint = this.ioReactor.listen(new InetSocketAddress(this.ifAddress, this.port > 0 ? this.port : 0)); final IOEventDispatch ioEventDispatch = new DefaultHttpServerIODispatch( this.serverEventHandler, this.connectionFactory); this.listenerExecutorService.execute(new Runnable() { @Override public void run() { try { ioReactor.execute(ioEventDispatch); } catch (Exception ex) { exceptionLogger.log(ex); } } }); } }
public void start() throws IOException { if (this.status.compareAndSet(Status.READY, Status.ACTIVE)) { this.endpoint = this.ioReactor.listen(new InetSocketAddress(this.ifAddress, this.port > 0 ? this.port : 0)); final IOEventDispatch ioEventDispatch = new DefaultHttpServerIODispatch( this.serverEventHandler, this.connectionFactory); this.listenerExecutorService.execute(new Runnable() { @Override public void run() { try { ioReactor.execute(ioEventDispatch); } catch (Exception ex) { exceptionLogger.log(ex); } } }); } }
sslIoEventDispatch = new DefaultHttpServerIODispatch(protocolHandler, sslConnFactory); plainIoEventDispatch = new DefaultHttpServerIODispatch(protocolHandler, plainConnFactory);
final IOEventDispatch ioEventDispatch = new DefaultHttpServerIODispatch(protocolHandler, connFactory);
IOEventDispatch ioEventDispatch = new DefaultHttpServerIODispatch(handler, connFactory);
final IOEventDispatch ioEventDispatch = new DefaultHttpServerIODispatch(protocolHandler, connFactory);
final IOEventDispatch ioEventDispatch = new DefaultHttpServerIODispatch(protocolHandler, connFactory);