Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

OptionDefaultDescription
interruptThreadsWhileStoppingtrueSets whether to interrupt any blocking threads during stopping. When true then Camel will attempt to shutdown any pending blocked threads during shutdown of Camel itself.
statisticsEnabledfalseWhether utilization statistics is enabled.

 

When Camel shutdown the manager also reports if there is any pending blocked threads left, and attempt to shutdown these blocked threads so they are not left hanging in the JVM. It is also possible to force a blocked thread to wake up and terminate, at runtime using the Java API or JMX, using the interrupt method.

...

The manager is defined using the interface org.apache.camel.spi.AsyncProcessorAwaitManager

 

Statistics

The manager can capture utilization statistics, which can be enabled using Java API or JMX.

Code Block
context.getAsyncProcessorAwaitManager().getStatistics().setStatisticsEnabled(true);

 

JMX managed

The AsyncProcessorAwaitManager is JMX aware as well so you can manage it from a JMX console.

...