Class ElectLeadersResult

    • 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 elections succeed.
      KafkaFuture<java.util.Map<TopicPartition,​java.util.Optional<java.lang.Throwable>>> partitions()
      Get a future for the topic partitions for which a leader election was attempted.
      • Methods inherited from class java.lang.Object

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

      • partitions

        public KafkaFuture<java.util.Map<TopicPartition,​java.util.Optional<java.lang.Throwable>>> partitions()

        Get a future for the topic partitions for which a leader election was attempted. If the election succeeded then the value for a topic partition will be the empty Optional. Otherwise the election failed and the Optional will be set with the error.

      • all

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