public class UpdateExpressionWatermark extends Watermark implements Initialisable, MuleContextAware
Watermark in which the value is updated through a MEL
expressionannotationsPHASE_NAME| Constructor and Description |
|---|
UpdateExpressionWatermark(ObjectStore<Serializable> objectStore,
String variable,
String defaultExpression,
String updateExpression) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
getUpdatedValue(MuleEvent event)
Returns the new watermark value by evaluating
updateExpression on the
flowVar of the given name |
void |
initialise()
Method used to perform any initialisation work.
|
MessageProcessorPollingInterceptor |
interceptor()
Returns an interceptor instance.
|
void |
setMuleContext(MuleContext muleContext) |
putInto, resolveVariable, updateFrom, updateWithpublic UpdateExpressionWatermark(ObjectStore<Serializable> objectStore, String variable, String defaultExpression, String updateExpression)
public void initialise()
throws InitialisationException
InitialisableInitialisationException should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.initialise in interface InitialisableInitialisationException - if a fatal error occurs causing the Mule instance to shutdownRecoverableException - if an error occurs that can be recovered fromprotected Object getUpdatedValue(MuleEvent event)
updateExpression on the
flowVar of the given namegetUpdatedValue in class Watermarkevent - the @{link MuleEvent in which the watermark is being
evaluatedSerializable valuepublic MessageProcessorPollingInterceptor interceptor()
MessageProcessorPollingOverrideinterceptor in class MessageProcessorPollingOverridepublic void setMuleContext(MuleContext muleContext)
setMuleContext in interface MuleContextAwareCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.