Package io.micronaut.gcp.pubsub.serdes
Class DefaultPubSubMessageSerDesRegistry
java.lang.Object
io.micronaut.gcp.pubsub.serdes.DefaultPubSubMessageSerDesRegistry
- All Implemented Interfaces:
PubSubMessageSerDesRegistry
@Singleton
public class DefaultPubSubMessageSerDesRegistry
extends Object
implements PubSubMessageSerDesRegistry
Default implementation of a
PubSubMessageSerDesRegistry.- Since:
- 2.0.0
- Author:
- Vinicius Carvalho
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the appropriate PubSubMessageSerDes for the provided contentType.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.gcp.pubsub.serdes.PubSubMessageSerDesRegistry
find
-
Constructor Details
-
DefaultPubSubMessageSerDesRegistry
- Parameters:
serDes- list ofPubSubMessageSerDesto be injected
-
-
Method Details
-
find
Description copied from interface:PubSubMessageSerDesRegistryRetrieves the appropriate PubSubMessageSerDes for the provided contentType.- Specified by:
findin interfacePubSubMessageSerDesRegistry- Parameters:
contentType- The MIME type to search for a SerDes- Returns:
- the registered SerDes
-