@Singleton public class DefaultRabbitMessageSerDesRegistry extends Object implements RabbitMessageSerDesRegistry
RabbitMessageSerDesRegistry
.Constructor and Description |
---|
DefaultRabbitMessageSerDesRegistry(RabbitMessageSerDes<?>... serDes)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
<T> 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> 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