org.opencredo.esper.integration
Class EventDrivenEsperInboundChannelAdapter
java.lang.Object
org.opencredo.esper.integration.EventDrivenEsperInboundChannelAdapter
- All Implemented Interfaces:
- com.espertech.esper.client.UnmatchedListener, com.espertech.esper.client.UpdateListener, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean
public class EventDrivenEsperInboundChannelAdapter
- extends java.lang.Object
- implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, com.espertech.esper.client.UpdateListener, com.espertech.esper.client.UnmatchedListener
Provides a simple inbound channel adapter that takes Esper events and places
them on the indicated Spring Integration channel.
By default this adapter creates an Esper template with no name, by specifying
setTemplateName(String) you will be able to create Esper template
with name.
- Author:
- Russ Miles (russell.miles@opencredo.com), Jonas Partner (jonas.partner@opencredo.com), Tomas Lukosius (tomas.lukosius@opencredo.com)
|
Method Summary |
void |
afterPropertiesSet()
|
void |
destroy()
|
void |
setTemplateName(java.lang.String templateName)
|
void |
setTimeout(long timeout)
Provides a timeout that is used when sending messages to the indicated
channel. |
void |
update(com.espertech.esper.client.EventBean eventBean)
|
void |
update(com.espertech.esper.client.EventBean[] eventBeans,
com.espertech.esper.client.EventBean[] eventBeans1)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventDrivenEsperInboundChannelAdapter
public EventDrivenEsperInboundChannelAdapter(org.springframework.integration.MessageChannel channel,
java.lang.String epl)
- Provide the channel required to send to
- Parameters:
channel - epl -
setTimeout
public void setTimeout(long timeout)
- Provides a timeout that is used when sending messages to the indicated
channel.
- Parameters:
timeout - The timeout to be used when sending messages to the specified
channel.
setTemplateName
public void setTemplateName(java.lang.String templateName)
- Parameters:
templateName - the templateName to set
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception- See Also:
InitializingBean.afterPropertiesSet()
update
public void update(com.espertech.esper.client.EventBean[] eventBeans,
com.espertech.esper.client.EventBean[] eventBeans1)
- Specified by:
update in interface com.espertech.esper.client.UpdateListener
update
public void update(com.espertech.esper.client.EventBean eventBean)
- Specified by:
update in interface com.espertech.esper.client.UnmatchedListener
destroy
public void destroy()
- Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean
- Throws:
java.lang.Exception- See Also:
DisposableBean.destroy()
Copyright © 2011. All Rights Reserved.