protected boolean hasStartedOrFinishedShuttingDown() {
        synchronized (stateLock) {
            return state.hasStartedOrFinishedShuttingDown();
        }
    }
Return the current {@link State} of this {@code KafkaStreams} instance.

@return the current state of this Kafka Streams instance
streams/src/main/java/org/apache/kafka/streams/KafkaStreams.java