You can create Consumer components in MXML or ActionScript. To subscribe to a destination, you call the
Consumer.subscribe() method.
You can also specify
message and fault event handlers for a Consumer component. A Consumer component
broadcasts a
message event when a message is sent to a destination and the message has been routed to a consumer
subscribed to that destination. A
fault event is broadcast when the channel to which the Consumer component is
subscribed cannot establish a connection to the destination, or the subscription request is denied.
For reference information ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.