Interface ContextNameStrategy

All Superinterfaces:
org.apache.kafka.common.Configurable
All Known Implementing Classes:
NullContextNameStrategy

public interface ContextNameStrategy extends org.apache.kafka.common.Configurable
A ContextNameStrategy is used by a serializer or deserializer to determine the context name used with the schema registry.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    configure(Map<String,?> var1)
     
    For a given topic, returns the context name to use.
  • Method Details

    • configure

      default void configure(Map<String,?> var1)
      Specified by:
      configure in interface org.apache.kafka.common.Configurable
    • contextName

      String contextName(String topic)
      For a given topic, returns the context name to use.
      Parameters:
      topic - The Kafka topic name.
      Returns:
      The context name to use