Package org.apache.kafka.clients.admin
Class ElectPreferredLeadersResult
- java.lang.Object
-
- org.apache.kafka.clients.admin.ElectPreferredLeadersResult
-
@Evolving @Deprecated public class ElectPreferredLeadersResult extends java.lang.Object
Deprecated.Since 2.4.0. UseAdmin.electLeaders(ElectionType, Set, ElectLeadersOptions)
.The result ofAdmin.electPreferredLeaders(Collection, ElectPreferredLeadersOptions)
The API of this class is evolving, seeAdmin
for details.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description KafkaFuture<java.lang.Void>
all()
Deprecated.Return a future which succeeds if all the topic elections succeed.KafkaFuture<java.lang.Void>
partitionResult(TopicPartition partition)
Deprecated.Get the result of the election for the givenpartition
.KafkaFuture<java.util.Set<TopicPartition>>
partitions()
Deprecated.Get a future for the topic partitions for which a leader election was attempted.
-
-
-
Method Detail
-
partitionResult
public KafkaFuture<java.lang.Void> partitionResult(TopicPartition partition)
Deprecated.Get the result of the election for the givenpartition
. If there was not an election triggered for the givenpartition
, the returned future will complete with an error.
-
partitions
public KafkaFuture<java.util.Set<TopicPartition>> partitions()
Deprecated.Get a future for the topic partitions for which a leader election was attempted. A partition will be present in this result if an election was attempted even if the election was not successful.
This method is provided to discover the partitions attempted when
Admin.electPreferredLeaders(Collection)
is called with a nullpartitions
argument.
-
all
public KafkaFuture<java.lang.Void> all()
Deprecated.Return a future which succeeds if all the topic elections succeed.
-
-