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 Type
    Method
    Description
    find(io.micronaut.http.MediaType type)
    Retrieves the appropriate PubSubMessageSerDes for the provided contentType.
    find(String contentType)
    Retrieves the appropriate PubSubMessageSerDes for the provided contentType.
  • Method Details

    • find

      default 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

      Optional<PubSubMessageSerDes> find(String contentType)
      Retrieves the appropriate PubSubMessageSerDes for the provided contentType.
      Parameters:
      contentType - The MIME type to search for a SerDes
      Returns:
      the registered SerDes