Class DelegatePerformanceCounter

java.lang.Object
org.apache.camel.management.DelegatePerformanceCounter
All Implemented Interfaces:
PerformanceCounter

public class DelegatePerformanceCounter extends Object implements PerformanceCounter
Delegates to another PerformanceCounter.

This is used to allow Camel to pre initialize these delegate performance counters when Camel creates the actual route from the model. Then later as the various processors, routes etc. is created and registered in the LifecycleStrategy then we link this to the real ManagedPerformanceCounter mbean so the mbean can gather statistics.

This delegation is needed as how Camel is designed to register services in the LifecycleStrategy in various stages.