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 Details

    • AlterPartitionReassignmentsOptions

      public AlterPartitionReassignmentsOptions()
  • Method Details

    • allowReplicationFactorChange

      public AlterPartitionReassignmentsOptions allowReplicationFactorChange(boolean allow)
      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.