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