com.espertech.esperio.jms
Class SpringJMSTemplateOutputAdapter
java.lang.Object
com.espertech.esperio.jms.JMSOutputAdapter
com.espertech.esperio.jms.SpringJMSTemplateOutputAdapter
- All Implemented Interfaces:
- com.espertech.esper.adapter.Adapter, com.espertech.esper.adapter.AdapterSPI, com.espertech.esper.adapter.OutputAdapter
public class SpringJMSTemplateOutputAdapter
- extends JMSOutputAdapter
Output adapter for sending engine events out into the JMS world using Spring JMS templates.
Method Summary |
org.springframework.jms.core.JmsTemplate |
getJmsTemplate()
Returns the jms template. |
void |
send(com.espertech.esper.client.EventBean eventBean,
JMSMessageMarshaller jmsMessageMarshaller)
Abstract send methods for marshalling and sending an event of to JMS care. |
void |
setJmsTemplate(org.springframework.jms.core.JmsTemplate jmsTemplate)
Sets the Spring JMS template |
Methods inherited from class com.espertech.esperio.jms.JMSOutputAdapter |
destroy, getEPServiceProvider, getJmsMessageMarshaller, getState, getSubscription, getSubscriptionMap, pause, resume, setDestination, setEPServiceProvider, setJmsMessageMarshaller, setSubscriptionMap, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringJMSTemplateOutputAdapter
public SpringJMSTemplateOutputAdapter()
getJmsTemplate
public org.springframework.jms.core.JmsTemplate getJmsTemplate()
- Returns the jms template.
- Returns:
- Spring JMS template
setJmsTemplate
public void setJmsTemplate(org.springframework.jms.core.JmsTemplate jmsTemplate)
- Sets the Spring JMS template
- Parameters:
jmsTemplate
- to set
send
public void send(com.espertech.esper.client.EventBean eventBean,
JMSMessageMarshaller jmsMessageMarshaller)
throws com.espertech.esper.client.EPException
- Description copied from class:
JMSOutputAdapter
- Abstract send methods for marshalling and sending an event of to JMS care.
- Specified by:
send
in class JMSOutputAdapter
- Parameters:
eventBean
- is the eventjmsMessageMarshaller
- is the marshaller
- Throws:
com.espertech.esper.client.EPException
- when the send failed