@ SuppressWarnings ( "unchecked" ) public Set < String > getTopics ( ) { Map < String , List < PartitionInfo > > topicInfo = getTopicInfo ( ) ; Set < String > topics = topicInfo != null ? topicInfo . keySet ( ) : null ; return topics != null ? Collections . unmodifiableSet ( topics ) : Collections . EMPTY_SET ; }
Gets all available topics .