private boolean listenersRun;
private ContextImpl listenContext;
public NetServerImpl(VertxInternal vertx, NetServerOptions options) {
this.vertx = vertx;
this.options = new NetServerOptions(options);
this.sslHelper = new SSLHelper(options, KeyStoreHelper.create(vertx, options.getKeyStoreOptions()), KeyStoreHelper.create(vertx, options.getTrustStoreOptions()));
this.creatingContext = vertx.getContext();
if (creatingContext != null) {
if (creatingContext.isWorker()) {
throw new IllegalStateException("Cannot use NetServer in a worker verticle");