public void setProducerThrowable(Throwable producerThrowable) { LOGGER.error("Producer failure", producerThrowable); boolean first = this.producerThrowable.compareAndSet(null, producerThrowable); if (first) { queue.producerFailure(producerThrowable); executor.execute(() -> onThrowable.run()); } }
public void setProducerThrowable(Throwable producerThrowable) { LOGGER.error("Producer failure", producerThrowable); boolean first = this.producerThrowable.compareAndSet(null, producerThrowable); if (first) { queue.producerFailure(producerThrowable); executor.execute(() -> onThrowable.run()); } }