public class WireTap extends AbstractMessageProcessorOwner implements Processor
WireTap MessageProcessor allows inspection of messages in a flow.
The incoming message is is sent to both the primary and wiretap outputs. The flow of the primary output will be unmodified and a copy of the message used for the wiretap output.
An optional filter can be used to filter which message are sent to the wiretap output, this filter does not affect the flow to the primary output. If there is an error sending to the wiretap output no exception will be thrown but rather an error logged.
EIP Reference: http://www.eaipatterns.com/WireTap.html
ReactiveProcessor.ProcessingType| Modifier and Type | Field and Description |
|---|---|
protected Filter |
filter |
protected Processor |
filteredTap |
protected org.slf4j.Logger |
logger |
protected Processor |
tap |
flowConstruct, messagingExceptionHandler, muleContext| Constructor and Description |
|---|
WireTap() |
| Modifier and Type | Method and Description |
|---|---|
Filter |
getFilter() |
protected List<Processor> |
getOwnedMessageProcessors() |
Processor |
getTap() |
Event |
process(Event event)
Invokes the MessageProcessor.
|
void |
setFilter(Filter filter) |
void |
setMessageProcessor(Processor tap)
Deprecated.
|
void |
setTap(Processor tap) |
String |
toString() |
getOwnedObjectsdispose, getFlowConstruct, getMuleContext, initialise, setFlowConstruct, setMessagingExceptionHandler, setMuleContext, start, stopgetAnnotation, getAnnotations, getLocation, setAnnotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetProcessingTypesetMuleContextsetFlowConstructprotected final transient org.slf4j.Logger logger
protected volatile Processor tap
protected volatile Filter filter
protected Processor filteredTap
public Event process(Event event) throws org.mule.runtime.api.exception.MuleException
Processorpublic Processor getTap()
public void setTap(Processor tap)
@Deprecated public void setMessageProcessor(Processor tap)
public Filter getFilter()
public void setFilter(Filter filter)
protected List<Processor> getOwnedMessageProcessors()
getOwnedMessageProcessors in class AbstractMessageProcessorOwnerCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.