@Override public void close() { delegateProcessor.close(); } }
public void close() { try { final long startNs = time.nanoseconds(); if (processor != null) { processor.close(); } nodeMetrics.nodeDestructionSensor.record(time.nanoseconds() - startNs); nodeMetrics.removeAllSensors(); } catch (final Exception e) { throw new StreamsException(String.format("failed to close processor %s", name), e); } }