Package io.micronaut.gcp.pubsub.serdes
Interface PubSubMessageSerDesRegistry
- All Known Implementing Classes:
 DefaultPubSubMessageSerDesRegistry
public interface PubSubMessageSerDesRegistry
A registry of 
PubSubMessageSerDes instances. Returns the
 SerDes for the given MediaType- Since:
 - 2.0.0
 - Author:
 - Vinicius Carvalho
 
- 
Method Summary
Modifier and TypeMethodDescriptiondefault Optional<PubSubMessageSerDes>find(io.micronaut.http.MediaType type) Retrieves the appropriate PubSubMessageSerDes for the provided contentType.Retrieves the appropriate PubSubMessageSerDes for the provided contentType. 
- 
Method Details
- 
find
Retrieves the appropriate PubSubMessageSerDes for the provided contentType.- Parameters:
 type- The MIME type to search for a SerDes- Returns:
 - the registered SerDes
 
 - 
find
Retrieves the appropriate PubSubMessageSerDes for the provided contentType.- Parameters:
 contentType- The MIME type to search for a SerDes- Returns:
 - the registered SerDes
 
 
 -