public final class AvroAggregateSerdes<K,C,E,A> extends Object implements AggregateSerdes<K,C,E,A>
Constructor and Description |
---|
AvroAggregateSerdes(GenericMapper<K,org.apache.avro.generic.GenericRecord> keyMapper,
GenericMapper<C,org.apache.avro.generic.GenericRecord> commandMapper,
GenericMapper<E,org.apache.avro.generic.GenericRecord> eventMapper,
GenericMapper<A,org.apache.avro.generic.GenericRecord> aggregateMapper,
String schemaRegistryUrl,
boolean useMockSchemaRegistry,
org.apache.avro.Schema aggregateSchema) |
Modifier and Type | Method and Description |
---|---|
org.apache.kafka.common.serialization.Serde<K> |
aggregateKey() |
org.apache.kafka.common.serialization.Serde<AggregateUpdate<A>> |
aggregateUpdate() |
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 extends org.apache.avro.generic.GenericRecord,C extends org.apache.avro.generic.GenericRecord,E extends org.apache.avro.generic.GenericRecord,A extends org.apache.avro.generic.GenericRecord> |
of(String schemaRegistryUrl,
boolean useMockSchemaRegistry,
org.apache.avro.Schema aggregateSchema) |
static <K extends org.apache.avro.generic.GenericRecord,C extends org.apache.avro.generic.GenericRecord,E extends org.apache.avro.generic.GenericRecord,A extends org.apache.avro.generic.GenericRecord> |
of(String schemaRegistryUrl,
org.apache.avro.Schema aggregateSchema) |
org.apache.kafka.common.serialization.Serde<ValueWithSequence<E>> |
valueWithSequence() |
public AvroAggregateSerdes(GenericMapper<K,org.apache.avro.generic.GenericRecord> keyMapper, GenericMapper<C,org.apache.avro.generic.GenericRecord> commandMapper, GenericMapper<E,org.apache.avro.generic.GenericRecord> eventMapper, GenericMapper<A,org.apache.avro.generic.GenericRecord> aggregateMapper, String schemaRegistryUrl, boolean useMockSchemaRegistry, org.apache.avro.Schema aggregateSchema)
public static <K extends org.apache.avro.generic.GenericRecord,C extends org.apache.avro.generic.GenericRecord,E extends org.apache.avro.generic.GenericRecord,A extends org.apache.avro.generic.GenericRecord> AvroAggregateSerdes<K,C,E,A> of(String schemaRegistryUrl, org.apache.avro.Schema aggregateSchema)
public static <K extends org.apache.avro.generic.GenericRecord,C extends org.apache.avro.generic.GenericRecord,E extends org.apache.avro.generic.GenericRecord,A extends org.apache.avro.generic.GenericRecord> AvroAggregateSerdes<K,C,E,A> of(String schemaRegistryUrl, boolean useMockSchemaRegistry, org.apache.avro.Schema aggregateSchema)
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<ValueWithSequence<E>> valueWithSequence()
valueWithSequence
in interface AggregateSerdes<K,C,E,A>
public org.apache.kafka.common.serialization.Serde<AggregateUpdate<A>> aggregateUpdate()
aggregateUpdate
in interface AggregateSerdes<K,C,E,A>
public org.apache.kafka.common.serialization.Serde<CommandResponse<K>> commandResponse()
commandResponse
in interface CommandSerdes<K,C>
Copyright © 2019. All rights reserved.