Class CreateTopicsResult

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      KafkaFuture<java.lang.Void> all()
      Return a future which succeeds if all the topic creations succeed.
      KafkaFuture<Config> config​(java.lang.String topic)
      Returns a future that provides topic configs for the topic when the request completes.
      KafkaFuture<java.lang.Integer> numPartitions​(java.lang.String topic)
      Returns a future that provides number of partitions in the topic when the request completes.
      KafkaFuture<java.lang.Integer> replicationFactor​(java.lang.String topic)
      Returns a future that provides replication factor for the topic when the request completes.
      java.util.Map<java.lang.String,​KafkaFuture<java.lang.Void>> values()
      Return a map from topic names to futures, which can be used to check the status of individual topic creations.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • values

        public java.util.Map<java.lang.String,​KafkaFuture<java.lang.Void>> values()
        Return a map from topic names to futures, which can be used to check the status of individual topic creations.
      • all

        public KafkaFuture<java.lang.Void> all()
        Return a future which succeeds if all the topic creations succeed.
      • config

        public KafkaFuture<Config> config​(java.lang.String topic)
        Returns a future that provides topic configs for the topic when the request completes.

        If broker version doesn't support replication factor in the response, throw UnsupportedVersionException. If broker returned an error for topic configs, throw appropriate exception. For example, TopicAuthorizationException is thrown if user does not have permission to describe topic configs.

      • numPartitions

        public KafkaFuture<java.lang.Integer> numPartitions​(java.lang.String topic)
        Returns a future that provides number of partitions in the topic when the request completes.

        If broker version doesn't support replication factor in the response, throw UnsupportedVersionException. If broker returned an error for topic configs, throw appropriate exception. For example, TopicAuthorizationException is thrown if user does not have permission to describe topic configs.

      • replicationFactor

        public KafkaFuture<java.lang.Integer> replicationFactor​(java.lang.String topic)
        Returns a future that provides replication factor for the topic when the request completes.

        If broker version doesn't support replication factor in the response, throw UnsupportedVersionException. If broker returned an error for topic configs, throw appropriate exception. For example, TopicAuthorizationException is thrown if user does not have permission to describe topic configs.