Interface JmsMessageCreator<T>


  • public interface JmsMessageCreator<T>
    A creator of a JMS Message from the raw event.
    Author:
    Filip Hrisafov
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      javax.jms.Message toMessage​(T event, Map<String,​Object> headerMap, javax.jms.Session session)
      Convert the raw event to a JMS Message using the supplied session to create the message object.
    • Method Detail

      • toMessage

        javax.jms.Message toMessage​(T event,
                                    Map<String,​Object> headerMap,
                                    javax.jms.Session session)
                             throws javax.jms.JMSException
        Convert the raw event to a JMS Message using the supplied session to create the message object.
        Parameters:
        event - the event to convert
        headerMap - the headers for the JMS message
        session - the Session to use for creating a JMS Message
        Returns:
        the JMS Message
        Throws:
        javax.jms.JMSException - if thrown by JMS API methods