@Singleton public class DefaultPubSubMessageSerDesRegistry extends java.lang.Object implements PubSubMessageSerDesRegistry
PubSubMessageSerDesRegistry.| Constructor and Description |
|---|
DefaultPubSubMessageSerDesRegistry(PubSubMessageSerDes[] serDes) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<PubSubMessageSerDes> |
find(java.lang.String contentType)
Retrieves the appropriate PubSubMessageSerDes for the provided contentType.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindpublic DefaultPubSubMessageSerDesRegistry(PubSubMessageSerDes[] serDes)
serDes - list of PubSubMessageSerDes to be injectedpublic java.util.Optional<PubSubMessageSerDes> find(java.lang.String contentType)
PubSubMessageSerDesRegistryfind in interface PubSubMessageSerDesRegistrycontentType - The MIME type to search for a SerDes