Class AlterConfigPolicy
java.lang.Object
io.confluent.kafka.server.plugins.policy.AlterConfigPolicy
- All Implemented Interfaces:
AutoCloseable,kafka.server.link.ClusterLinkAlterConfigPolicy,org.apache.kafka.common.Configurable,org.apache.kafka.server.policy.AlterConfigPolicy
public class AlterConfigPolicy
extends Object
implements kafka.server.link.ClusterLinkAlterConfigPolicy
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from interface org.apache.kafka.server.policy.AlterConfigPolicy
org.apache.kafka.server.policy.AlterConfigPolicy.RequestMetadata -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()clusterLinkRestrictTopicConfigs(Map<String, String> configs) voidclusterLinkValidateTopicConfigs(Map<String, String> configs) voidvoidvalidate(org.apache.kafka.server.policy.AlterConfigPolicy.RequestMetadata reqMetadata) We don't allow any config updates using the external listener where all principals are MultiTenantPrincipals.
-
Constructor Details
-
AlterConfigPolicy
public AlterConfigPolicy()
-
-
Method Details
-
configure
-
validate
public void validate(org.apache.kafka.server.policy.AlterConfigPolicy.RequestMetadata reqMetadata) throws org.apache.kafka.common.errors.PolicyViolationException We don't allow any config updates using the external listener where all principals are MultiTenantPrincipals. On internal listeners with regular non-tenant principals, config updates are permitted, for example to update SSL keystores without broker restart.- Specified by:
validatein interfaceorg.apache.kafka.server.policy.AlterConfigPolicy- Throws:
org.apache.kafka.common.errors.PolicyViolationException
-
clusterLinkValidateTopicConfigs
-
clusterLinkRestrictTopicConfigs
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-