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 MessageProcessorPollingInterceptor
event
- The event that is about to be sentMuleException
public MuleEvent prepareRouting(MuleEvent sourceEvent, MuleEvent event) throws ConfigurationException
prepareRouting
in class MessageProcessorPollingInterceptor
sourceEvent
- The event that was returned by the polling processorevent
- The event that is about to be sent to the rest of the flowConfigurationException
public void postProcessRouting(MuleEvent event) throws ObjectStoreException
postProcessRouting
in class MessageProcessorPollingInterceptor
event
- The event that was routed to the rest of the flowObjectStoreException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.