public class KafkaJsonSchemaSerializer<T> extends AbstractKafkaJsonSchemaSerializer<T> implements org.apache.kafka.common.serialization.Serializer<T>
AbstractKafkaSchemaSerDe.ExtendedSchema, AbstractKafkaSchemaSerDe.Migration, AbstractKafkaSchemaSerDe.SubjectSchemaautoRegisterSchema, failUnknownProperties, idCompatStrict, latestCompatStrict, normalizeSchema, objectMapper, oneofForNullables, propagateSchemaTags, scanPackages, specVersion, useSchemaId, validateconfig, configOriginals, contextNameStrategy, enableRuleServiceLoader, idSize, isKey, keySubjectNameStrategy, latestVersions, latestWithMetadata, MAGIC_BYTE, metadata, ruleActions, ruleExecutors, schemaRegistry, ticker, useLatestVersion, useSchemaReflection, valueSubjectNameStrategy| Constructor and Description |
|---|
KafkaJsonSchemaSerializer()
Constructor used by Kafka producer.
|
KafkaJsonSchemaSerializer(SchemaRegistryClient client) |
KafkaJsonSchemaSerializer(SchemaRegistryClient client,
Map<String,?> props) |
KafkaJsonSchemaSerializer(SchemaRegistryClient client,
Map<String,?> props,
int cacheCapacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
configure(Map<String,?> config,
boolean isKey) |
byte[] |
serialize(String topic,
org.apache.kafka.common.header.Headers headers,
T record) |
byte[] |
serialize(String topic,
T record) |
configure, objectMapper, serializeImpl, serializeImpl, serializerConfig, validateJsonclearKey, configureClientProperties, executeMigrations, executeRules, executeRules, getById, getBySubjectAndId, getByteBuffer, getContextName, getContextName, getLatestWithMetadata, getMigrations, getOldSubjectName, getRuleActions, getRuleExecutors, getSchemaById, getSchemaBySubjectAndId, getSchemaRegistryClient, getSubjectName, isDeprecatedSubjectNameStrategy, isKey, key, latestVersionsCache, latestWithMetadataCache, lookupLatestVersion, lookupLatestVersion, lookupSchemaBySubjectAndId, postOp, register, register, register, registerWithResponse, setKey, strategyUsesSchema, ticker, toKafkaExceptionpublic KafkaJsonSchemaSerializer()
public KafkaJsonSchemaSerializer(SchemaRegistryClient client)
public KafkaJsonSchemaSerializer(SchemaRegistryClient client, Map<String,?> props)
public KafkaJsonSchemaSerializer(SchemaRegistryClient client, Map<String,?> props, int cacheCapacity)
public void configure(Map<String,?> config, boolean isKey)
configure in interface org.apache.kafka.common.serialization.Serializer<T>public byte[] serialize(String topic, T record)
serialize in interface org.apache.kafka.common.serialization.Serializer<T>public byte[] serialize(String topic, org.apache.kafka.common.header.Headers headers, T record)
serialize in interface org.apache.kafka.common.serialization.Serializer<T>public void close()
close in interface Closeableclose in interface AutoCloseableclose in interface org.apache.kafka.common.serialization.Serializer<T>close in class AbstractKafkaSchemaSerDeCopyright © 2026 Confluent, Inc.. All rights reserved.