Class ElectLeadersResult
java.lang.Object
org.apache.kafka.clients.admin.ElectLeadersResult
The result of
Admin.electLeaders(ElectionType, Set, ElectLeadersOptions) The API of this class is evolving, see Admin for details.Method Summary
Modifier and TypeMethodDescriptionall()Return a future which succeeds if all the topic elections succeed.Get a future for the topic partitions for which a leader election was attempted.
Method Details
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
Return a future which succeeds if all the topic elections succeed.