Package io.micronaut.gcp.pubsub.serdes
Interface PubSubMessageSerDesRegistry
-
- All Known Implementing Classes:
DefaultPubSubMessageSerDesRegistry
public interface PubSubMessageSerDesRegistryA registry ofPubSubMessageSerDesinstances. Returns the SerDes for the givenMediaType- Since:
- 2.0.0
- Author:
- Vinicius Carvalho
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.util.Optional<PubSubMessageSerDes>find(io.micronaut.http.MediaType type)Retrieves the appropriate PubSubMessageSerDes for the provided contentType.java.util.Optional<PubSubMessageSerDes>find(java.lang.String contentType)Retrieves the appropriate PubSubMessageSerDes for the provided contentType.
-
-
-
Method Detail
-
find
default java.util.Optional<PubSubMessageSerDes> find(io.micronaut.http.MediaType type)
Retrieves the appropriate PubSubMessageSerDes for the provided contentType.- Parameters:
type- The MIME type to search for a SerDes- Returns:
- the registered SerDes
-
find
java.util.Optional<PubSubMessageSerDes> find(java.lang.String contentType)
Retrieves the appropriate PubSubMessageSerDes for the provided contentType.- Parameters:
contentType- The MIME type to search for a SerDes- Returns:
- the registered SerDes
-
-