public Set<TopicPartition> topicPartitions() {
        return Collections.unmodifiableSet(topicPartitions);
    }
Topic partitions consumed by the instance as an active replica

@return set of active topic partitions
streams/src/main/java/org/apache/kafka/streams/state/StreamsMetadata.java