public Set<TopicPartition> standbyTopicPartitions() {
        return Collections.unmodifiableSet(standbyTopicPartitions);
    }
(Source) Topic partitions for which the instance acts as standby.

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