public final class JsonCommandSerdes<K,C> extends Object implements CommandSerdes<K,C>
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 |
---|
JsonCommandSerdes() |
JsonCommandSerdes(GenericMapper<K,com.google.gson.JsonElement> keyMapper,
GenericMapper<C,com.google.gson.JsonElement> commandMapper) |
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() |
protected final GenericMapper<K,com.google.gson.JsonElement> keyMapper
protected final GenericMapper<C,com.google.gson.JsonElement> commandMapper
public JsonCommandSerdes()
public JsonCommandSerdes(GenericMapper<K,com.google.gson.JsonElement> keyMapper, GenericMapper<C,com.google.gson.JsonElement> commandMapper)
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.