@Deprecated public class ForwardingCatchAllStrategy extends AbstractCatchAllStrategy implements MessagingExceptionHandlerAware, Initialisable, MuleContextAware
ForwardingCatchAllStrategy
acts as a catch and forward router for
any events not caught by the router this strategy is associated with. Users can
assign an endpoint to this strategy to forward all events to. This can be used as
a dead letter/error queue.
Deprecated from 3.6.0. This functionality is specific to Services.Modifier and Type | Field and Description |
---|---|
protected OutboundEndpoint |
endpoint
Deprecated.
|
logger, statistics
PHASE_NAME
Constructor and Description |
---|
ForwardingCatchAllStrategy()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
MuleEvent |
doCatchMessage(MuleEvent event)
Deprecated.
|
OutboundEndpoint |
getEndpoint()
Deprecated.
|
void |
initialise()
Deprecated.
Method used to perform any initialisation work.
|
boolean |
isSendTransformed()
Deprecated.
|
void |
setEndpoint(OutboundEndpoint endpoint)
Deprecated.
|
void |
setMessageProcessor(MessageProcessor processor)
Deprecated.
|
void |
setMessagingExceptionHandler(MessagingExceptionHandler messagingExceptionHandler)
Deprecated.
|
void |
setMuleContext(MuleContext context)
Deprecated.
|
void |
setSendTransformed(boolean sendTransformed)
Deprecated.
|
getRouterStatistics, process, setRouterStatistics
protected OutboundEndpoint endpoint
public void setEndpoint(OutboundEndpoint endpoint)
public void setMessageProcessor(MessageProcessor processor)
public OutboundEndpoint getEndpoint()
public MuleEvent doCatchMessage(MuleEvent event) throws RoutingException
doCatchMessage
in class AbstractCatchAllStrategy
RoutingException
public boolean isSendTransformed()
public void setSendTransformed(boolean sendTransformed)
public void setMessagingExceptionHandler(MessagingExceptionHandler messagingExceptionHandler)
setMessagingExceptionHandler
in interface MessagingExceptionHandlerAware
public void initialise() throws InitialisationException
Initialisable
InitialisationException
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 Initialisable
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered frompublic void setMuleContext(MuleContext context)
setMuleContext
in interface MuleContextAware
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.