Class Route

java.lang.Object
org.mule.sdk.api.runtime.route.Route

@MinMuleVersion("4.5.0") public abstract class Route extends Object
A Route allows a given Operation to receive a chain of message processors along with a set of parameters, to be executed as part of the operation's execution.

Routes should be used for receiving multiple possible paths of execution, where the parameters of the Route can be used to decide whether or not the contained processors should be executed. Stereotypes can be used in the Route declaration to define which are the allowed stereotypes of the received processors.

This Route will not allow complex parameters to be defined inline, since the DSL content of the element will be exclusive of the parameterized processors.

Since:
1.0
See Also:
  • Constructor Details

    • Route

      public Route()
  • Method Details

    • getChain

      public Chain getChain()
    • setProcessors

      public final void setProcessors(Chain processors)
      This is for call from the runtime when building this component. Additional calls to this will fail with IllegalStateException.
      Parameters:
      processors - the processors of this route