Class QualifiedSubjectNamingStrategy

java.lang.Object
org.springframework.cloud.stream.schema.registry.avro.QualifiedSubjectNamingStrategy
All Implemented Interfaces:
SubjectNamingStrategy

public class QualifiedSubjectNamingStrategy extends Object implements SubjectNamingStrategy
Since:
2.2.0
Author:
José A. Íñigo
  • Constructor Details

    • QualifiedSubjectNamingStrategy

      public QualifiedSubjectNamingStrategy()
  • Method Details

    • toSubject

      public String toSubject(String subjectNamePrefix, org.apache.avro.Schema schema)
      Description copied from interface: SubjectNamingStrategy
      Takes the Avro schema on input and returns the generated subject under which the schema should be registered.
      Specified by:
      toSubject in interface SubjectNamingStrategy
      Parameters:
      subjectNamePrefix - optional subject name prefix
      schema - schema to register
      Returns:
      subject name