@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, wait
find
public DefaultPubSubMessageSerDesRegistry(PubSubMessageSerDes[] serDes)
serDes
- list of PubSubMessageSerDes
to be injectedpublic java.util.Optional<PubSubMessageSerDes> find(java.lang.String contentType)
PubSubMessageSerDesRegistry
find
in interface PubSubMessageSerDesRegistry
contentType
- The MIME type to search for a SerDes