Package io.micronaut.mqtt.serdes
Interface MqttPayloadSerDesRegistry
- All Known Implementing Classes:
DefaultMqttPayloadSerDesRegistry
public interface MqttPayloadSerDesRegistry
A registry of
MqttPayloadSerDes
instances. Responsible
for returning the serdes that supports the given type.- Since:
- 1.1.0
- Author:
- James Kleeh
- See Also:
-
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.
-
Method Details
-
findSerdes
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
-