Class TenantMetadataCache

java.lang.Object
io.confluent.kafka.multitenant.metadata.TenantMetadataCache
All Implemented Interfaces:
org.apache.kafka.server.multitenant.TenantConfigSource

public class TenantMetadataCache extends Object implements org.apache.kafka.server.multitenant.TenantConfigSource
Tenant-config view over KafkaLogicalClusterMetadata.

Null-valued overrides are not supported: an entry in lcm.configOverrides() whose value is null is dropped (and logged) rather than threaded through to TenantConfig. TenantConfig/ConfigDef validators expect non-null values for typed keys, and "explicit unset" is not a distinct state we represent — a tenant that wants the default simply omits the key.

  • Method Details

    • onMetadataUpdate

      public void onMetadataUpdate(Map<String, ? extends org.apache.kafka.server.multitenant.LogicalClusterMetadata> multiTenantMetadataDelta) throws Exception
      Throws:
      Exception
    • configFor

      public Optional<org.apache.kafka.server.multitenant.TenantConfig> configFor(String tenantId)
      Specified by:
      configFor in interface org.apache.kafka.server.multitenant.TenantConfigSource
    • profileFor

      public Optional<TenantProfile> profileFor(String tenantId)