Interface ClassMapper

  • All Known Subinterfaces:
    Jackson2JavaTypeMapper
    All Known Implementing Classes:
    DefaultJackson2JavaTypeMapper

    public interface ClassMapper
    Strategy for setting metadata on messages such that one can create the class that needs to be instantiated when receiving a message.
    Since:
    2.1
    Author:
    Mark Pollack, James Carr, Gary Russell
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void fromClass​(java.lang.Class<?> clazz, org.apache.kafka.common.header.Headers headers)  
      java.lang.Class<?> toClass​(org.apache.kafka.common.header.Headers headers)  
    • Method Detail

      • fromClass

        void fromClass​(java.lang.Class<?> clazz,
                       org.apache.kafka.common.header.Headers headers)
      • toClass

        java.lang.Class<?> toClass​(org.apache.kafka.common.header.Headers headers)