public final class JsonAggregateSerdes<K,C,E,A> extends Object implements AggregateSerdes<K,C,E,A>
Modifier and Type | Field and Description |
---|---|
protected GenericMapper<C,com.google.gson.JsonElement> |
commandMapper |
protected GenericMapper<K,com.google.gson.JsonElement> |
keyMapper |
Constructor and Description |
---|
JsonAggregateSerdes() |
JsonAggregateSerdes(GenericMapper<K,com.google.gson.JsonElement> keyMapper,
GenericMapper<C,com.google.gson.JsonElement> commandMapper,
GenericMapper<E,com.google.gson.JsonElement> eventMapper,
GenericMapper<A,com.google.gson.JsonElement> aggregateMapper) |
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() |
org.apache.kafka.common.serialization.Serde<ValueWithSequence<E>> |
valueWithSequence() |
protected final GenericMapper<K,com.google.gson.JsonElement> keyMapper
protected final GenericMapper<C,com.google.gson.JsonElement> commandMapper
public JsonAggregateSerdes()
public JsonAggregateSerdes(GenericMapper<K,com.google.gson.JsonElement> keyMapper, GenericMapper<C,com.google.gson.JsonElement> commandMapper, GenericMapper<E,com.google.gson.JsonElement> eventMapper, GenericMapper<A,com.google.gson.JsonElement> aggregateMapper)
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.