@Deprecated
    public Collection<org.apache.kafka.streams.state.StreamsMetadata> allMetadata() {
        validateIsRunningOrRebalancing();
        return streamsMetadataState.getAllMetadata().stream().map(streamsMetadata ->
                new org.apache.kafka.streams.state.StreamsMetadata(streamsMetadata.hostInfo(),
                        streamsMetadata.stateStoreNames(),
                        streamsMetadata.topicPartitions(),
                        streamsMetadata.standbyStateStoreNames(),
                        streamsMetadata.standbyTopicPartitions()))
                .collect(Collectors.toSet());
    }
Find all currently running {@code KafkaStreams} instances (potentially remotely) that use the same
{@link StreamsConfig#APPLICATION_ID_CONFIG application ID} as this instance (i.e., all instances that belong to
the same Kafka Streams application) and return {@link StreamsMetadata} for each discovered instance.
<p>
Note: this is a point in time view and it may change due to partition reassignment.

@return {@link StreamsMetadata} for each {@code KafkaStreams} instances of this application
@deprecated since 3.0.0 use {@link KafkaStreams#metadataForAllStreamsClients}
streams/src/main/java/org/apache/kafka/streams/KafkaStreams.java