Add KafkaClient.topics property to get list of known topics

This commit is contained in:
Dana Powers
2015-06-09 09:39:29 -07:00
parent 47bc6a7095
commit 513f210ba3

View File

@@ -306,6 +306,10 @@ class KafkaClient(object):
return sorted(list(self.topic_partitions[topic]))
@property
def topics(self):
return list(self.topic_partitions.keys())
def ensure_topic_exists(self, topic, timeout = 30):
start_time = time.time()