Class TenantClientQuotaConsumer
java.lang.Object
io.confluent.kafka.multitenant.quota.TenantClientQuotaConsumer
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.kafka.common.Configurable,org.apache.kafka.server.quota.MultiTenantQuotaConsumer
public class TenantClientQuotaConsumer
extends Object
implements org.apache.kafka.server.quota.MultiTenantQuotaConsumer
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionTenantClientQuotaConsumer(Map<String, ?> interBrokerClientConfig, org.apache.kafka.common.metrics.Metrics metrics) TenantClientQuotaConsumer(Map<String, ?> interBrokerClientConfig, org.apache.kafka.common.metrics.Metrics metrics, org.apache.kafka.common.utils.Time time) Creates a new TenantClientQuotaConsumer, that reads user quotas from the sync pipeline topic and applies them. -
Method Summary
-
Constructor Details
-
TenantClientQuotaConsumer
-
TenantClientQuotaConsumer
public TenantClientQuotaConsumer(Map<String, ?> interBrokerClientConfig, org.apache.kafka.common.metrics.Metrics metrics, org.apache.kafka.common.utils.Time time) Creates a new TenantClientQuotaConsumer, that reads user quotas from the sync pipeline topic and applies them. Callers must take into account that this constructor BLOCKS UNTIL THE TOPIC IS READ TO END, which could take some time, especially if retrieving the metadata for the topic from the cluster is slow (as it usually is on clusters with many partitions).
-
-
Method Details
-
configure
public void configure(org.apache.kafka.connect.util.KafkaBasedLog<byte[], byte[]> log, String sessionUuid) -
configure
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
start
- Specified by:
startin interfaceorg.apache.kafka.server.quota.MultiTenantQuotaConsumer
-