public abstract class AbstractRoutingStrategy extends Object implements RoutingStrategy
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger
logger used by this class
|
| Constructor and Description |
|---|
AbstractRoutingStrategy(MuleContext muleContext) |
| Modifier and Type | Method and Description |
|---|---|
protected Event |
createEventToRoute(Event routedEvent,
org.mule.runtime.api.message.Message message,
Processor route)
Create a new event to be routed to the target MP
|
protected MuleContext |
getMuleContext() |
protected Event |
sendRequest(Event routedEvent,
org.mule.runtime.api.message.Message message,
Processor route,
boolean awaitResponse)
Send message event to destination.
|
static void |
validateMessageIsNotConsumable(Event event,
org.mule.runtime.api.message.Message message)
Validates that the payload is not consumable so it can be copied.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitroutepublic AbstractRoutingStrategy(MuleContext muleContext)
protected final Event sendRequest(Event routedEvent, org.mule.runtime.api.message.Message message, Processor route, boolean awaitResponse) throws org.mule.runtime.api.exception.MuleException
routedEvent - event to routemessage - message to routeroute - message processor to be executedawaitResponse - if theorg.mule.runtime.api.exception.MuleExceptionprotected Event createEventToRoute(Event routedEvent, org.mule.runtime.api.message.Message message, Processor route)
protected MuleContext getMuleContext()
public static void validateMessageIsNotConsumable(Event event, org.mule.runtime.api.message.Message message) throws org.mule.runtime.api.exception.MuleException
event - message - org.mule.runtime.api.exception.MuleException - if the payload is consumableCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.