Class ExecutionTypeDeclarationEnricher

java.lang.Object
org.mule.runtime.extension.internal.loader.enricher.ExecutionTypeDeclarationEnricher
All Implemented Interfaces:
DeclarationEnricher, WalkingDeclarationEnricher

public final class ExecutionTypeDeclarationEnricher extends Object implements WalkingDeclarationEnricher
Sets the ExecutionType on all operations which didn't explicitly set one. This is done by doing a best guess with the following rules:
  • Operation requires connection and is blocking: ExecutionType.BLOCKING
  • Operation requires connection and is non blocking: ExecutionType.CPU_LITE
  • None of the above: ExecutionType.CPU_LITE
Notice that under no circumstance the runtime will guess the operation is ExecutionType.CPU_INTENSIVE, the user needs to hint that manually.
Since:
1.0