This documentation is for WSO2 Enterprise Service Bus version 4.9.0 . View documentation for the latest release.

All docs This doc

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Parameter NameDescription
ExecutorThe priority executor that should be used to process the messages.
PriorityThe priority of messages that this mediator will handle. This priority level should also be defined in the priority executor.
SequenceThe sequence that should be used to process messages with the specified priority. This sequence should be saved in the registry before it can be selected here. Click either Configuration Registry or the Governance Registry to select the required sequence from the resource tree.

 

...

Example

For an example of priority-based mediationIn this example, two Enqueue mediator configurations use the priority executor One based on which requests are prioritized. A sequence named Send applies to requests with priority 2, and a sequence named LogSend applies to priority 1.

Code Block
languagexml
<inSequence xmlns="http://ws.apache.org/ns/synapse">
   <enqueue executor="One" priority="2" sequence="conf:/Send"></enqueue>
   <enqueue executor="One" priority="1" sequence="conf:/LogSend"></enqueue>
</inSequence>

Samples

For another example, see Sample 652: Priority Based Message Mediation.