Interface JmsMessageCreator<T>
-
public interface JmsMessageCreator<T>A creator of a JMSMessagefrom the raw event.- Author:
- Filip Hrisafov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.jms.MessagetoMessage(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 convertheaderMap- the headers for the JMS messagesession- the Session to use for creating a JMS Message- Returns:
- the JMS Message
- Throws:
javax.jms.JMSException- if thrown by JMS API methods
-
-