io.simplesource.kafka.api.CommandSerdes<K,C>public final class JsonCommandSerdes<K,C> extends Object implements io.simplesource.kafka.api.CommandSerdes<K,C>
| Modifier and Type | Field | Description |
|---|---|---|
protected GenericMapper<C,com.google.gson.JsonElement> |
commandMapper |
|
protected GenericMapper<K,com.google.gson.JsonElement> |
keyMapper |
| Constructor | Description |
|---|---|
JsonCommandSerdes() |
|
JsonCommandSerdes(GenericMapper<K,com.google.gson.JsonElement> keyMapper,
GenericMapper<C,com.google.gson.JsonElement> commandMapper) |
| Modifier and Type | Method | Description |
|---|---|---|
org.apache.kafka.common.serialization.Serde<K> |
aggregateKey() |
|
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() |
|
org.apache.kafka.common.serialization.Serde<UUID> |
commandResponseKey() |
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()
public org.apache.kafka.common.serialization.Serde<io.simplesource.kafka.model.CommandRequest<K,C>> commandRequest()
public org.apache.kafka.common.serialization.Serde<UUID> commandResponseKey()
Copyright © 2019. All rights reserved.