public final ThreadMetadata threadMetadata() {
        return threadMetadata;
    }
Return information about the current {@link StreamThread}.

@return {@link ThreadMetadata}.
streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamThread.java