Interface SerdeRegistry
- All Superinterfaces:
io.micronaut.core.order.Ordered
- All Known Implementing Classes:
CompositeSerdeRegistry,JsonSerdeRegistry
public interface SerdeRegistry
extends io.micronaut.core.order.Ordered
A registry of Kafka
Serde instances.- Since:
- 1.0
- Author:
- Graeme Rocher
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Method Summary
Modifier and TypeMethodDescriptiondefault <T> Deserializer<T>getDeserializer(Class<T> type) Obtain aDeserializerfor the given type.<T> Serde<T>Obtain aSerdefor the given type.default <T> Serializer<T>getSerializer(Class<T> type) Obtain aSerializerfor the given type.default <T> Deserializer<T>pickDeserializer(io.micronaut.core.type.Argument<T> argument) Picks the most appropriateDeserializerfor the given argument.default <T> Serializer<T>pickSerializer(io.micronaut.core.type.Argument<T> argument) Picks the most appropriateDeserializerfor the given argument.Methods inherited from interface io.micronaut.core.order.Ordered
getOrder
-
Method Details
-
getSerde
Obtain aSerdefor the given type.- Type Parameters:
T- The generic type- Parameters:
type- The type- Returns:
- The
Serde
-
getSerializer
Obtain aSerializerfor the given type.- Type Parameters:
T- The generic type- Parameters:
type- The type- Returns:
- The
Serde
-
getDeserializer
Obtain aDeserializerfor the given type.- Type Parameters:
T- The generic type- Parameters:
type- The type- Returns:
- The
Serde
-
pickDeserializer
Picks the most appropriateDeserializerfor the given argument.- Type Parameters:
T- The generic type- Parameters:
argument- The argument- Returns:
- The
Deserializer
-
pickSerializer
Picks the most appropriateDeserializerfor the given argument.- Type Parameters:
T- The generic type- Parameters:
argument- The argument- Returns:
- The
Deserializer
-