public final class AvroCommandSerdes<K,C> extends Object implements CommandSerdes<K,C>
Constructor and Description |
---|
AvroCommandSerdes(GenericMapper<K,org.apache.avro.generic.GenericRecord> keyMapper,
GenericMapper<C,org.apache.avro.generic.GenericRecord> commandMapper,
String schemaRegistryUrl,
boolean useMockSchemaRegistry) |
Modifier and Type | Method and Description |
---|---|
org.apache.kafka.common.serialization.Serde<K> |
aggregateKey() |
org.apache.kafka.common.serialization.Serde<CommandId> |
commandId() |
org.apache.kafka.common.serialization.Serde<CommandRequest<K,C>> |
commandRequest() |
org.apache.kafka.common.serialization.Serde<CommandResponse<K>> |
commandResponse() |
static <K,C> AvroCommandSerdes<K,C> |
of(GenericMapper<K,org.apache.avro.generic.GenericRecord> keyMapper,
GenericMapper<C,org.apache.avro.generic.GenericRecord> commandMapper,
String schemaRegistryUrl,
boolean useMockSchemaRegistry) |
static <K extends org.apache.avro.generic.GenericRecord,C extends org.apache.avro.generic.GenericRecord> |
of(String schemaRegistryUrl) |
static <K extends org.apache.avro.generic.GenericRecord,C extends org.apache.avro.generic.GenericRecord> |
of(String schemaRegistryUrl,
boolean useMockSchemaRegistry) |
public AvroCommandSerdes(GenericMapper<K,org.apache.avro.generic.GenericRecord> keyMapper, GenericMapper<C,org.apache.avro.generic.GenericRecord> commandMapper, String schemaRegistryUrl, boolean useMockSchemaRegistry)
public static <K extends org.apache.avro.generic.GenericRecord,C extends org.apache.avro.generic.GenericRecord> AvroCommandSerdes<K,C> of(String schemaRegistryUrl)
public static <K extends org.apache.avro.generic.GenericRecord,C extends org.apache.avro.generic.GenericRecord> AvroCommandSerdes<K,C> of(String schemaRegistryUrl, boolean useMockSchemaRegistry)
public static <K,C> AvroCommandSerdes<K,C> of(GenericMapper<K,org.apache.avro.generic.GenericRecord> keyMapper, GenericMapper<C,org.apache.avro.generic.GenericRecord> commandMapper, String schemaRegistryUrl, boolean useMockSchemaRegistry)
public org.apache.kafka.common.serialization.Serde<K> aggregateKey()
aggregateKey
in interface CommandSerdes<K,C>
public org.apache.kafka.common.serialization.Serde<CommandRequest<K,C>> commandRequest()
commandRequest
in interface CommandSerdes<K,C>
public org.apache.kafka.common.serialization.Serde<CommandId> commandId()
commandId
in interface CommandSerdes<K,C>
public org.apache.kafka.common.serialization.Serde<CommandResponse<K>> commandResponse()
commandResponse
in interface CommandSerdes<K,C>
Copyright © 2019. All rights reserved.