Interface TopicNameMapping


public interface TopicNameMapping
The result of discovering the topic names for a collection of topic ids
  • Field Details

  • Method Details

    • anyFailures

      boolean anyFailures()
      Returns:
      true if there are any failures
    • allFailures

      default boolean allFailures()
      Returns:
      true if all name mappings failed
    • topicNames

      Map<org.apache.kafka.common.Uuid,String> topicNames()
      Returns:
      immutable map from topic id to successfully mapped topic name
    • failures

      Map<org.apache.kafka.common.Uuid,TopicNameMappingException> failures()
      Describes the reason for every failed mapping. Expected exception types are: All the exception types offer TopicNameMappingException.getError() for conveniently determining the cause. Unhandled exceptions will be mapped to an Errors.UNKNOWN_SERVER_ERROR. Callers will be able to use this to detect expected cases like Errors.UNKNOWN_TOPIC_ID.
      Returns:
      immutable map from topic id to kafka server error