@Singleton @Primary public class CompositeSerdeRegistry extends java.lang.Object implements SerdeRegistry
SerdeRegistry
that combines multiple registries into a single registry.Constructor and Description |
---|
CompositeSerdeRegistry(SerdeRegistry... registries)
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
<T> org.apache.kafka.common.serialization.Serde<T> |
getSerde(java.lang.Class<T> type)
Obtain a
Serde for the given type. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDeserializer, getSerializer, pickDeserializer, pickSerializer
public CompositeSerdeRegistry(SerdeRegistry... registries)
registries
- The other registries@Nonnull public <T> org.apache.kafka.common.serialization.Serde<T> getSerde(java.lang.Class<T> type)
SerdeRegistry
Serde
for the given type.getSerde
in interface SerdeRegistry
T
- The generic typetype
- The typeSerde