public Map<String, List<PartitionInfo>> getAllTopicMetadata(Timer timer) {
        MetadataRequest.Builder request = MetadataRequest.Builder.allTopics();
        return getTopicMetadata(request, timer);
    }
Fetches the {@link PartitionInfo partition information} for all topics in the cluster.

@param timer Timer bounding how long this method can block
@return The map of topics with their {@link PartitionInfo partition information}
clients/src/main/java/org/apache/kafka/clients/consumer/internals/TopicMetadataFetcher.java