Search in sources :

Example 1 with ManagedScheduledPollConsumer

use of org.apache.camel.management.mbean.ManagedScheduledPollConsumer in project camel by apache.

the class DefaultManagementObjectStrategy method getManagedObjectForConsumer.

public Object getManagedObjectForConsumer(CamelContext context, Consumer consumer) {
    ManagedConsumer mc;
    if (consumer instanceof ScheduledPollConsumer) {
        mc = new ManagedScheduledPollConsumer(context, (ScheduledPollConsumer) consumer);
    } else {
        mc = new ManagedConsumer(context, consumer);
    }
    mc.init(context.getManagementStrategy());
    return mc;
}
Also used : ScheduledPollConsumer(org.apache.camel.impl.ScheduledPollConsumer) ManagedScheduledPollConsumer(org.apache.camel.management.mbean.ManagedScheduledPollConsumer) ManagedScheduledPollConsumer(org.apache.camel.management.mbean.ManagedScheduledPollConsumer) ManagedConsumer(org.apache.camel.management.mbean.ManagedConsumer)

Aggregations

ScheduledPollConsumer (org.apache.camel.impl.ScheduledPollConsumer)1 ManagedConsumer (org.apache.camel.management.mbean.ManagedConsumer)1 ManagedScheduledPollConsumer (org.apache.camel.management.mbean.ManagedScheduledPollConsumer)1