Interface Deserializer<T>

    • Method Detail

      • configure

        default void configure​(Map<String,​?> properties)
        Configures this Deserializer
        Parameters:
        properties - the configuration properties
        Since:
        1.0
      • deserialize

        T deserialize​(String destinationName,
                      byte[] payload)
        Deserialize payload bytes into business object of type T
        Parameters:
        destinationName - The topic or queue name to route the object.
        payload - The byte[] of payload from carrier to deserialize into an object of type T.
        Returns:
        constructed object of type T from byte[] of payload
        Since:
        1.0
      • deserialize

        default T deserialize​(String destinationName,
                              byte[] payload,
                              Map<String,​Object> headers)
        Deserialize payload bytes and headers into business object of type T
        Parameters:
        destinationName - The topic or queue name to route the object.
        payload - The byte[] of payload from carrier to deserialize into an object of type T.
        headers - Defines additional headers to not include in the payload bytes, this can be an in/out parameter and can be modified on call to deserialize if present.
        Returns:
        constructed object of type T from byte[] of payload and headers
        Since:
        1.0