Interface Serializer<T>

    • Method Detail

      • configure

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

        byte[] serialize​(String destinationName,
                         T object)
        Serializes given object and destination. This is equivalent to invoking serialize(String, Object, Map) with null headers.
        Parameters:
        destinationName - The topic or queue name to route the object.
        object - Business object to serialize.
        Returns:
        byte[] from object that will be added as carrier payload
        Since:
        1.0
      • serialize

        default byte[] serialize​(String destinationName,
                                 T object,
                                 Map<String,​Object> headers)
        Serializes given object, destination and headers.
        Parameters:
        destinationName - The topic or queue name to route the object.
        object - Business object to serialize.
        headers - Defines additional header to not include in the returned bytes, this can be an in/out parameter and can be modified on call to serialize if present.
        Returns:
        byte[] from object that will be added as carrier payload
        Since:
        1.0