public interface SerdeRegistry
extends io.micronaut.core.order.Ordered
Serde
instances.Modifier and Type | Method and Description |
---|---|
default <T> org.apache.kafka.common.serialization.Deserializer<T> |
getDeserializer(java.lang.Class<T> type)
Obtain a
Deserializer for the given type. |
<T> org.apache.kafka.common.serialization.Serde<T> |
getSerde(java.lang.Class<T> type)
Obtain a
Serde for the given type. |
default <T> org.apache.kafka.common.serialization.Serializer<T> |
getSerializer(java.lang.Class<T> type)
Obtain a
Serializer for the given type. |
default <T> org.apache.kafka.common.serialization.Deserializer<T> |
pickDeserializer(io.micronaut.core.type.Argument<T> argument)
Picks the most appropriate
Deserializer for the given argument. |
default <T> org.apache.kafka.common.serialization.Serializer<T> |
pickSerializer(io.micronaut.core.type.Argument<T> argument)
Picks the most appropriate
Deserializer for the given argument. |
<T> org.apache.kafka.common.serialization.Serde<T> getSerde(java.lang.Class<T> type)
Serde
for the given type.T
- The generic typetype
- The typeSerde
default <T> org.apache.kafka.common.serialization.Serializer<T> getSerializer(java.lang.Class<T> type)
Serializer
for the given type.T
- The generic typetype
- The typeSerde
default <T> org.apache.kafka.common.serialization.Deserializer<T> getDeserializer(java.lang.Class<T> type)
Deserializer
for the given type.T
- The generic typetype
- The typeSerde
default <T> org.apache.kafka.common.serialization.Deserializer<T> pickDeserializer(io.micronaut.core.type.Argument<T> argument)
Deserializer
for the given argument.T
- The generic typeargument
- The argumentDeserializer
default <T> org.apache.kafka.common.serialization.Serializer<T> pickSerializer(io.micronaut.core.type.Argument<T> argument)
Deserializer
for the given argument.T
- The generic typeargument
- The argumentDeserializer