Class JsonCommandSerdes<K,C>
- java.lang.Object
-
- io.simplesource.kafka.serialization.json.JsonCommandSerdes<K,C>
-
- All Implemented Interfaces:
io.simplesource.kafka.api.CommandSerdes<K,C>
public final class JsonCommandSerdes<K,C> extends Object implements io.simplesource.kafka.api.CommandSerdes<K,C>
-
-
Field Summary
Fields Modifier and Type Field Description protected GenericMapper<C,com.google.gson.JsonElement>commandMapperprotected GenericMapper<K,com.google.gson.JsonElement>keyMapper
-
Constructor Summary
Constructors Constructor Description JsonCommandSerdes()JsonCommandSerdes(GenericMapper<K,com.google.gson.JsonElement> keyMapper, GenericMapper<C,com.google.gson.JsonElement> commandMapper)
-
Method Summary
Modifier and Type Method Description org.apache.kafka.common.serialization.Serde<K>aggregateKey()org.apache.kafka.common.serialization.Serde<io.simplesource.api.CommandId>commandId()org.apache.kafka.common.serialization.Serde<io.simplesource.kafka.model.CommandRequest<K,C>>commandRequest()org.apache.kafka.common.serialization.Serde<io.simplesource.kafka.model.CommandResponse<K>>commandResponse()
-
-
-
Field Detail
-
keyMapper
protected final GenericMapper<K,com.google.gson.JsonElement> keyMapper
-
commandMapper
protected final GenericMapper<C,com.google.gson.JsonElement> commandMapper
-
-
Constructor Detail
-
JsonCommandSerdes
public JsonCommandSerdes()
-
JsonCommandSerdes
public JsonCommandSerdes(GenericMapper<K,com.google.gson.JsonElement> keyMapper, GenericMapper<C,com.google.gson.JsonElement> commandMapper)
-
-
Method Detail
-
aggregateKey
public org.apache.kafka.common.serialization.Serde<K> aggregateKey()
-
commandRequest
public org.apache.kafka.common.serialization.Serde<io.simplesource.kafka.model.CommandRequest<K,C>> commandRequest()
-
commandId
public org.apache.kafka.common.serialization.Serde<io.simplesource.api.CommandId> commandId()
-
-