public synchronized void start() { if (isDisabled()) { return; } if (transport == null) { transport = newTransport(dsn); } transport.start(); }
@Override protected void doStart() throws ElasticsearchException { adapter.rxMetric.clear(); adapter.txMetric.clear(); transport.transportServiceAdapter(adapter); transport.start(); if (transport.boundAddress() != null && logger.isInfoEnabled()) { logger.info("{}", transport.boundAddress()); } boolean setStarted = started.compareAndSet(false, true); assert setStarted : "service was already started"; }