public class MessagingExceptionStrategyAcceptorDelegate extends AbstractMuleObjectOwner<MessagingExceptionHandler> implements MessagingExceptionHandlerAcceptor
MessagingExceptionHandler as
MessagingExceptionHandlerAcceptor.flowConstruct, messagingExceptionHandler, muleContext| Constructor and Description |
|---|
MessagingExceptionStrategyAcceptorDelegate(MessagingExceptionHandler messagingExceptionHandler) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Event event) |
boolean |
acceptsAll() |
org.reactivestreams.Publisher<Event> |
apply(MessagingException exception) |
MessagingExceptionHandler |
getExceptionListener() |
protected List<MessagingExceptionHandler> |
getOwnedObjects() |
Event |
handleException(MessagingException exception,
Event event)
Take some action when a messaging exception has occurred (i.e., there was a message in play when the exception occurred).
|
dispose, getFlowConstruct, getMuleContext, initialise, setFlowConstruct, setMessagingExceptionHandler, setMuleContext, start, stopgetAnnotation, getAnnotations, getLocation, setAnnotationspublic MessagingExceptionStrategyAcceptorDelegate(MessagingExceptionHandler messagingExceptionHandler)
public boolean accept(Event event)
accept in interface Acceptorevent - Event to route through exception handlerMessagingExceptionHandler should handler exception false
otherwisepublic boolean acceptsAll()
acceptsAll in interface Acceptorpublic Event handleException(MessagingException exception, Event event)
MessagingExceptionHandlerhandleException in interface MessagingExceptionHandlerexception - which occurredevent - which was being processed when the exception occurredpublic org.reactivestreams.Publisher<Event> apply(MessagingException exception)
apply in interface Function<MessagingException,org.reactivestreams.Publisher<Event>>apply in interface MessagingExceptionHandlerprotected List<MessagingExceptionHandler> getOwnedObjects()
getOwnedObjects in class AbstractMuleObjectOwner<MessagingExceptionHandler>public MessagingExceptionHandler getExceptionListener()
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.