@Singleton public class DefaultRabbitMessageSerDesRegistry extends java.lang.Object implements RabbitMessageSerDesRegistry
RabbitMessageSerDesRegistry
.Constructor and Description |
---|
DefaultRabbitMessageSerDesRegistry(RabbitMessageSerDes<?>... serDes)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
<T> java.util.Optional<RabbitMessageSerDes<T>> |
findSerdes(io.micronaut.core.type.Argument<T> type)
Returns the serdes that supports the given type.
|
public DefaultRabbitMessageSerDesRegistry(RabbitMessageSerDes<?>... serDes)
serDes
- The serdes to be registered.public <T> java.util.Optional<RabbitMessageSerDes<T>> findSerdes(io.micronaut.core.type.Argument<T> type)
RabbitMessageSerDesRegistry
findSerdes
in interface RabbitMessageSerDesRegistry
T
- The type to be serialized/deserializedtype
- The type