public class TenantClientQuotaConsumer extends Object implements org.apache.kafka.server.quota.MultiTenantQuotaConsumer
| Modifier and Type | Class and Description |
|---|---|
static class |
TenantClientQuotaConsumer.State |
| Constructor and Description |
|---|
TenantClientQuotaConsumer(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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
configure(org.apache.kafka.connect.util.KafkaBasedLog<byte[],byte[]> log,
String sessionUuid) |
void |
configure(Map<String,?> configs) |
protected static io.confluent.protobuf.cloud.events.v1.ClientQuotaKey |
parseKey(org.apache.kafka.clients.consumer.ConsumerRecord<byte[],byte[]> record,
long sequenceId) |
protected static io.confluent.protobuf.cloud.events.v1.ClientQuotaValue |
parseValue(org.apache.kafka.clients.consumer.ConsumerRecord<byte[],byte[]> record,
long sequenceId,
io.confluent.protobuf.cloud.events.v1.ClientQuotaKey key) |
CompletableFuture<Void> |
start() |
public TenantClientQuotaConsumer(Map<String,?> interBrokerClientConfig, org.apache.kafka.common.metrics.Metrics metrics)
public TenantClientQuotaConsumer(Map<String,?> interBrokerClientConfig, org.apache.kafka.common.metrics.Metrics metrics, org.apache.kafka.common.utils.Time time)
public void configure(org.apache.kafka.connect.util.KafkaBasedLog<byte[],byte[]> log,
String sessionUuid)
public void configure(Map<String,?> configs)
configure in interface org.apache.kafka.common.Configurablepublic void close()
close in interface Closeableclose in interface AutoCloseableprotected static io.confluent.protobuf.cloud.events.v1.ClientQuotaKey parseKey(org.apache.kafka.clients.consumer.ConsumerRecord<byte[],byte[]> record,
long sequenceId)
protected static io.confluent.protobuf.cloud.events.v1.ClientQuotaValue parseValue(org.apache.kafka.clients.consumer.ConsumerRecord<byte[],byte[]> record,
long sequenceId,
io.confluent.protobuf.cloud.events.v1.ClientQuotaKey key)
public CompletableFuture<Void> start()
start in interface org.apache.kafka.server.quota.MultiTenantQuotaConsumer