Interface ProcessorComponent
-
- All Known Implementing Classes:
AbstractProcessorComponent,AnypointMQProcessorComponent,APIKitProcessorComponent,DBProcessorComponent,FlowProcessorComponent,GenericProcessorComponent,HttpProcessorComponent,MuleCoreProcessorComponent
public interface ProcessorComponent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleancanHandle(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier)TraceComponentgetEndTraceComponent(org.mule.runtime.api.notification.EnrichedServerNotification notification)Build aTraceComponentfor end of a flow-like container or a message processor.default TraceComponentgetSourceEndTraceComponent(org.mule.runtime.api.notification.EnrichedServerNotification notification, TraceContextHandler traceContextHandler)For flows with a source component, this method can allow processor components to build source specific traces.default TraceComponentgetSourceStartTraceComponent(org.mule.runtime.api.notification.EnrichedServerNotification notification, TraceContextHandler traceContextHandler)If a message processor has a source variation, then this implementation can do more processing of a component.TraceComponentgetStartTraceComponent(org.mule.runtime.api.component.Component component, org.mule.runtime.api.message.Message message, String correlationId)TraceComponentgetStartTraceComponent(org.mule.runtime.api.notification.EnrichedServerNotification notification)Build aTraceComponentfor start of a flow-like container or a message processor.ProcessorComponentwithConfigurationComponentLocator(org.mule.runtime.api.component.location.ConfigurationComponentLocator configurationComponentLocator)
-
-
-
Method Detail
-
canHandle
boolean canHandle(org.mule.runtime.api.component.ComponentIdentifier componentIdentifier)
-
withConfigurationComponentLocator
ProcessorComponent withConfigurationComponentLocator(org.mule.runtime.api.component.location.ConfigurationComponentLocator configurationComponentLocator)
-
getStartTraceComponent
TraceComponent getStartTraceComponent(org.mule.runtime.api.notification.EnrichedServerNotification notification)
Build aTraceComponentfor start of a flow-like container or a message processor.- Parameters:
notification-EnrichedServerNotification- Returns:
TraceComponent
-
getStartTraceComponent
TraceComponent getStartTraceComponent(org.mule.runtime.api.component.Component component, org.mule.runtime.api.message.Message message, String correlationId)
-
getEndTraceComponent
TraceComponent getEndTraceComponent(org.mule.runtime.api.notification.EnrichedServerNotification notification)
Build aTraceComponentfor end of a flow-like container or a message processor. This may need light processing compared togetStartTraceComponent(EnrichedServerNotification).- Parameters:
notification-EnrichedServerNotification- Returns:
TraceComponent
-
getSourceStartTraceComponent
default TraceComponent getSourceStartTraceComponent(org.mule.runtime.api.notification.EnrichedServerNotification notification, TraceContextHandler traceContextHandler)
If a message processor has a source variation, then this implementation can do more processing of a component.- Parameters:
notification-EnrichedServerNotificationtraceContextHandler-TraceContextHandlerto help extract OpenTelemetry context- Returns:
TraceComponent
-
getSourceEndTraceComponent
default TraceComponent getSourceEndTraceComponent(org.mule.runtime.api.notification.EnrichedServerNotification notification, TraceContextHandler traceContextHandler)
For flows with a source component, this method can allow processor components to build source specific traces.- Parameters:
notification-EnrichedServerNotificationtraceContextHandler-TraceContextHandler- Returns:
- TraceComponent
-
-