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 aDeserializer
for the given type.<T> Serde<T>
Obtain aSerde
for the given type.default <T> Serializer<T>
getSerializer
(Class<T> type) Obtain aSerializer
for the given type.default <T> Deserializer<T>
pickDeserializer
(io.micronaut.core.type.Argument<T> argument) Picks the most appropriateDeserializer
for the given argument.default <T> Serializer<T>
pickSerializer
(io.micronaut.core.type.Argument<T> argument) Picks the most appropriateDeserializer
for the given argument.Methods inherited from interface io.micronaut.core.order.Ordered
getOrder
-
Method Details
-
getSerde
Obtain aSerde
for the given type.- Type Parameters:
T
- The generic type- Parameters:
type
- The type- Returns:
- The
Serde
-
getSerializer
Obtain aSerializer
for the given type.- Type Parameters:
T
- The generic type- Parameters:
type
- The type- Returns:
- The
Serde
-
getDeserializer
Obtain aDeserializer
for the given type.- Type Parameters:
T
- The generic type- Parameters:
type
- The type- Returns:
- The
Serde
-
pickDeserializer
Picks the most appropriateDeserializer
for the given argument.- Type Parameters:
T
- The generic type- Parameters:
argument
- The argument- Returns:
- The
Deserializer
-
pickSerializer
Picks the most appropriateDeserializer
for the given argument.- Type Parameters:
T
- The generic type- Parameters:
argument
- The argument- Returns:
- The
Deserializer
-