Package io.micronaut.rabbitmq.serdes
Class DefaultRabbitMessageSerDesRegistry
java.lang.Object
io.micronaut.rabbitmq.serdes.DefaultRabbitMessageSerDesRegistry
- All Implemented Interfaces:
RabbitMessageSerDesRegistry
@Singleton
public class DefaultRabbitMessageSerDesRegistry
extends Object
implements RabbitMessageSerDesRegistry
Default implementation of
RabbitMessageSerDesRegistry
.- Since:
- 1.1.0
- Author:
- James Kleeh
-
Constructor Summary
ConstructorDescriptionDefaultRabbitMessageSerDesRegistry
(RabbitMessageSerDes<?>... serDes) Default constructor. -
Method Summary
Modifier and TypeMethodDescription<T> Optional<RabbitMessageSerDes<T>>
findSerdes
(io.micronaut.core.type.Argument<T> type) Returns the serdes that supports the given type.
-
Constructor Details
-
DefaultRabbitMessageSerDesRegistry
Default constructor.- Parameters:
serDes
- The serdes to be registered.
-
-
Method Details
-
findSerdes
Description copied from interface:RabbitMessageSerDesRegistry
Returns the serdes that supports the given type.- Specified by:
findSerdes
in interfaceRabbitMessageSerDesRegistry
- Type Parameters:
T
- The type to be serialized/deserialized- Parameters:
type
- The type- Returns:
- An optional serdes
-