Package org.apache.kafka.clients.admin
Class AlterPartitionReassignmentsOptions
java.lang.Object
org.apache.kafka.clients.admin.AbstractOptions<AlterPartitionReassignmentsOptions>
org.apache.kafka.clients.admin.AlterPartitionReassignmentsOptions
public class AlterPartitionReassignmentsOptions
extends AbstractOptions<AlterPartitionReassignmentsOptions>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
A boolean indicating if the alter partition reassignments should be allowed to alter the replication factor of a partition.allowReplicationFactorChange
(boolean allow) Set the option indicating if the alter partition reassignments call should be allowed to alter the replication factor of a partition.Methods inherited from class org.apache.kafka.clients.admin.AbstractOptions
timeoutMs, timeoutMs
-
Constructor Details
-
AlterPartitionReassignmentsOptions
public AlterPartitionReassignmentsOptions()
-
-
Method Details
-
allowReplicationFactorChange
Set the option indicating if the alter partition reassignments call should be allowed to alter the replication factor of a partition. In cases where it is not allowed, any replication factor change will result in an exception thrown by the API. -
allowReplicationFactorChange
public boolean allowReplicationFactorChange()A boolean indicating if the alter partition reassignments should be allowed to alter the replication factor of a partition. In cases where it is not allowed, any replication factor change will result in an exception thrown by the API.
-