Package org.apache.kafka.clients.admin
Class ElectLeadersResult
- java.lang.Object
-
- org.apache.kafka.clients.admin.ElectLeadersResult
-
@Evolving public final class ElectLeadersResult extends Object
The result ofAdmin.electLeaders(ElectionType, Set, ElectLeadersOptions)
The API of this class is evolving, seeAdmin
for details.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KafkaFuture<Void>
all()
Return a future which succeeds if all the topic elections succeed.KafkaFuture<Map<TopicPartition,Optional<Throwable>>>
partitions()
Get a future for the topic partitions for which a leader election was attempted.
-
-
-
Method Detail
-
partitions
public KafkaFuture<Map<TopicPartition,Optional<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<Void> all()
Return a future which succeeds if all the topic elections succeed.
-
-