public class WatermarkPollingInterceptor extends MessageProcessorPollingInterceptor
MessageProcessorPollingInterceptor that retrieves the
current watermark value before the polling flow is executed and updates it when it
is finished.| Constructor and Description |
|---|
WatermarkPollingInterceptor(Watermark watermark) |
| Modifier and Type | Method and Description |
|---|---|
void |
postProcessRouting(MuleEvent event)
Watermark post processing saves the flow variable to the object store
|
MuleEvent |
prepareRouting(MuleEvent sourceEvent,
MuleEvent event)
Watermark route preparation carries the value from the source event to the
flow event
|
MuleEvent |
prepareSourceEvent(MuleEvent event)
Watermark source preprocessing puts the watermark value into a flow variable
|
protected final Watermark watermark
public WatermarkPollingInterceptor(Watermark watermark)
public MuleEvent prepareSourceEvent(MuleEvent event) throws MuleException
prepareSourceEvent in class MessageProcessorPollingInterceptorevent - The event that is about to be sentMuleExceptionpublic MuleEvent prepareRouting(MuleEvent sourceEvent, MuleEvent event) throws ConfigurationException
prepareRouting in class MessageProcessorPollingInterceptorsourceEvent - The event that was returned by the polling processorevent - The event that is about to be sent to the rest of the flowConfigurationExceptionpublic void postProcessRouting(MuleEvent event) throws ObjectStoreException
postProcessRouting in class MessageProcessorPollingInterceptorevent - The event that was routed to the rest of the flowObjectStoreExceptionCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.