THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||
---|---|---|
| ||
public class ResolveClientQuotasOptions extends AbstractOptions<ResolveClientQuotasOptions> { // Empty. } /** * The result of the {@link Admin#ResolveClientQuotas(Collection<QuotaEntity>, ResolveClientQuotasOptions)} call. */ public class ResolveClientQuotasResult { /** * Information about a specific quota configuration entry. */ public class Entry { /** * @param source the entity source for the value * @param value the non-null value */ public Entry(QuotaEntity source, Double value); } /** * Information about the value for a quota type. * * NOTE: We maintain a `Value` class because additional information may be added, e.g., * a list of overridden entries. */ public class Value { /** * @param entry the quota entry */ public Value(Entry entry); } /** * Maps a collection of entities to their resolved quota values. * * @param config the quota configuration for the requested entities */ public ResolveClientQuotasResult(Map<QuotaEntity, KafkaFuture<Map<String, Value>>> config); /** * Returns a map from quota entity to a future which can be used to check the status of the operation. */ public Map<QuotaEntity, KafkaFuture<Map<String, Value>>> config(); /** * Returns a future which succeeds only if all quota descriptions succeed. */ public KafkaFuture<Void> all(); } public interface Admin extends AutoCloseable { ... /** * DescribesResolves the effective resolvedquota quotasvalues for the provided entities. * * @param entities the entities to describe the resolved quotas for * @param options the options to use * @return the resolved quotas for the entities */ ResolveClientQuotasResult resolveClientQuotas(Collection<QuotaEntity> entities, ResolveClientQuotasOptions options); } |
...