@Override protected void doStop() { this.stopToken.requestCancellation(); super.doStop(); }
@Override protected void doStop() { // We need to first stop the operation queue, which will prevent any new items from being processed. Throwable ex = new CancellationException("OperationProcessor is shutting down."); closeQueue(ex); // Close the DataFrameBuilder and cancel any operations caught in limbo. synchronized (this.stateLock) { this.dataFrameBuilder.close(); } this.state.fail(ex, null); this.metrics.close(); super.doStop(); }