@Experimental
public interface ProfilingDataConsumer<T extends ProfilingEventContext>
ProfilingEventContext.
The implementation of this interface will be discovered by the Mule Runtime through a
ProfilingDataConsumerDiscoveryStrategy. Every time a profiling event included in the getProfilingEventTypes()
is triggered, onProfilingEvent(ProfilingEventType, ProfilingEventContext) will be invoked if
getEventContextFilter() returns true.
This is the class that should be implemented for consuming profiler data.
ProfilingDataConsumerDiscoveryStrategy| Modifier and Type | Method and Description |
|---|---|
Predicate<T> |
getEventContextFilter() |
Set<ProfilingEventType<T>> |
getProfilingEventTypes() |
void |
onProfilingEvent(ProfilingEventType<T> profilingEventType,
T profilingEventContext)
Consumes a profiling event.
|
void onProfilingEvent(ProfilingEventType<T> profilingEventType, T profilingEventContext)
profilingEventType - the ProfilingEventType.profilingEventContext - the profiler event context.Set<ProfilingEventType<T>> getProfilingEventTypes()
ProfilingEventType's the consumer will listen to.Predicate<T> getEventContextFilter()
onProfilingEvent(ProfilingEventType, ProfilingEventContext))Copyright © 2024 MuleSoft, Inc.. All rights reserved.