@ThreadSafe public class ProcessorTracingInterceptor extends Object implements org.mule.runtime.api.interception.ProcessorInterceptor
TransactionStore.TRACE_CONTEXT_MAP_KEY.
See TransactionStore.getTransactionContext(String, String)
for possible
entries in the map.| Constructor and Description |
|---|
ProcessorTracingInterceptor(MuleNotificationProcessor muleNotificationProcessor,
org.mule.runtime.api.component.location.ConfigurationComponentLocator configurationComponentLocator)
Interceptor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
after(org.mule.runtime.api.component.location.ComponentLocation location,
org.mule.runtime.api.interception.InterceptionEvent event,
Optional<Throwable> thrown) |
CompletableFuture<org.mule.runtime.api.interception.InterceptionEvent> |
around(org.mule.runtime.api.component.location.ComponentLocation location,
Map<String,org.mule.runtime.api.interception.ProcessorParameterValue> parameters,
org.mule.runtime.api.interception.InterceptionEvent event,
org.mule.runtime.api.interception.InterceptionAction action)
NOTE: Without this #around method, the context variable set in #before do not
reflect in final event passed to the
intercepted processor.
|
void |
before(org.mule.runtime.api.component.location.ComponentLocation location,
Map<String,org.mule.runtime.api.interception.ProcessorParameterValue> parameters,
org.mule.runtime.api.interception.InterceptionEvent event) |
public ProcessorTracingInterceptor(MuleNotificationProcessor muleNotificationProcessor, org.mule.runtime.api.component.location.ConfigurationComponentLocator configurationComponentLocator)
muleNotificationProcessor - MuleNotificationProcessor if configured fully to acquire
connection supplier.configurationComponentLocator - to locate mule componentspublic void before(org.mule.runtime.api.component.location.ComponentLocation location,
Map<String,org.mule.runtime.api.interception.ProcessorParameterValue> parameters,
org.mule.runtime.api.interception.InterceptionEvent event)
before in interface org.mule.runtime.api.interception.ProcessorInterceptorpublic void after(org.mule.runtime.api.component.location.ComponentLocation location,
org.mule.runtime.api.interception.InterceptionEvent event,
Optional<Throwable> thrown)
after in interface org.mule.runtime.api.interception.ProcessorInterceptorpublic CompletableFuture<org.mule.runtime.api.interception.InterceptionEvent> around(org.mule.runtime.api.component.location.ComponentLocation location, Map<String,org.mule.runtime.api.interception.ProcessorParameterValue> parameters, org.mule.runtime.api.interception.InterceptionEvent event, org.mule.runtime.api.interception.InterceptionAction action)
around in interface org.mule.runtime.api.interception.ProcessorInterceptorlocation - the location and identification properties of the intercepted
component in the mule app configuration.parameters - the parameters of the component as defined in the configuration.
All the values are lazily evaluated so
they will be calculated when
ProcessorParameterValue.resolveValue() method gets
invoked.event - an object that contains the state of the event to be sent to the
component. It may be modified by calling its
mutator methods.action - when something other than continuing the interception is desired,
the corresponding method on this object must
be called. The methods on this object return a
CompletableFuture that may be used to return from this
method.CompletableFuture<InterceptionEvent>Copyright © 2024 AVIO Consulting. All rights reserved.