Package io.micronaut.rabbitmq.serdes
Interface RabbitMessageSerDesRegistry
-
- All Known Implementing Classes:
DefaultRabbitMessageSerDesRegistry
public interface RabbitMessageSerDesRegistryA registry ofRabbitMessageSerDesinstances. Responsible for returning the serdes that supports the given type.- Since:
- 1.1.0
- See Also:
RabbitMessageSerDes.supports(Argument)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> java.util.Optional<RabbitMessageSerDes<T>>findSerdes(io.micronaut.core.type.Argument<T> type)Returns the serdes that supports the given type.
-
-
-
Method Detail
-
findSerdes
<T> java.util.Optional<RabbitMessageSerDes<T>> findSerdes(io.micronaut.core.type.Argument<T> type)
Returns the serdes that supports the given type.- Type Parameters:
T- The type to be serialized/deserialized- Parameters:
type- The type- Returns:
- An optional serdes
-
-