THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
public class AlterQuotasEntry { public class Op { /** * @param type the quota type to alter * @param units the units for the quota type * @param value if set then the existing value is updated, * otherwise if null, the existing value is cleared */ public Op(QuotaType type, QuotaUnits units, Double value); public QuotaType type(); public QuotaUnits units(); public Double value(); } /** * @param entity the entity whose config will be modified * @param ops the alteration to perform - if value is set, then the existing value is updated, * otherwise if null, the existing value is cleared */ public AlterQuotasEntry(Map<String, String> entity, Collection<Op> ops); public Map<String, String> entity(); public Collection<Ops> ops(); } public class AlterQuotasOptions { // Default. } public class AlterQuotasResult { /** * @return map of a quota entity update to its future */ public Map<Map<QuotaEntityMap<Map<String, String>, KafkaFuture<Void>> futures(); } public interface Admin extends AutoCloseable { /** * Alters the quotas as specified for the entries. * * @param alterations the alterations to perform * @return the result of the alterations */ AlterQuotasResult alterQuotas(Collection<AlterQuotasEntry> entries, AlterQuotasOptions options); } |
...