org.opencredo.esper.integration.interceptor
Class EsperWireTap
java.lang.Object
org.opencredo.esper.integration.interceptor.EsperWireTap
- All Implemented Interfaces:
- org.springframework.integration.channel.ChannelInterceptor
public class EsperWireTap
- extends java.lang.Object
- implements org.springframework.integration.channel.ChannelInterceptor
Provides a spring integration ChannelInterceptor implementation that
takes messages from the 4 interception points (pre-send, post-receive,
post-send, pre-receive) and sends either the message context or the message
payload to esper.
- Author:
- Russ Miles (russ.miles@opencredo.com), Jonas Partner (jonas.partner@opencredo.com)
|
Method Summary |
org.springframework.integration.Message<?> |
postReceive(org.springframework.integration.Message<?> message,
org.springframework.integration.MessageChannel channel)
|
void |
postSend(org.springframework.integration.Message<?> message,
org.springframework.integration.MessageChannel channel,
boolean sent)
|
boolean |
preReceive(org.springframework.integration.MessageChannel channel)
|
org.springframework.integration.Message<?> |
preSend(org.springframework.integration.Message<?> message,
org.springframework.integration.MessageChannel channel)
|
void |
setPostReceive(boolean postReceive)
|
void |
setPostSend(boolean postSend)
|
void |
setPreReceive(boolean preReceive)
|
void |
setPreSend(boolean preSend)
|
void |
setSendContext(boolean sendContext)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EsperWireTap
public EsperWireTap(EsperTemplate template,
java.lang.String sourceId)
setSendContext
public void setSendContext(boolean sendContext)
setPreSend
public void setPreSend(boolean preSend)
setPostSend
public void setPostSend(boolean postSend)
setPreReceive
public void setPreReceive(boolean preReceive)
setPostReceive
public void setPostReceive(boolean postReceive)
preSend
public org.springframework.integration.Message<?> preSend(org.springframework.integration.Message<?> message,
org.springframework.integration.MessageChannel channel)
- Specified by:
preSend in interface org.springframework.integration.channel.ChannelInterceptor
postReceive
public org.springframework.integration.Message<?> postReceive(org.springframework.integration.Message<?> message,
org.springframework.integration.MessageChannel channel)
- Specified by:
postReceive in interface org.springframework.integration.channel.ChannelInterceptor
postSend
public void postSend(org.springframework.integration.Message<?> message,
org.springframework.integration.MessageChannel channel,
boolean sent)
- Specified by:
postSend in interface org.springframework.integration.channel.ChannelInterceptor
preReceive
public boolean preReceive(org.springframework.integration.MessageChannel channel)
- Specified by:
preReceive in interface org.springframework.integration.channel.ChannelInterceptor
Copyright © 2011. All Rights Reserved.