A Consumer subscribes to a destination to receive messages. Consumers send subscribe and unsubscribe messages which generate a MessageAckEvent or MessageFaultEvent depending upon whether the operation was successful or not. Once subscribed, a Consumer dispatches a MessageEvent for each message it receives. Consumers provide the ability to filter messages using a selector. These selectors must be understood by the destination.
Constructor
new(messageType:String = "flex.messaging.messages.AsyncMessage")
Constructor.
Parameters:
messageType | The alias for the message type processed by the service hosting the remote destination the Consumer will subscribe to. This parameter is deprecated and it is ignored by the constructor.
|
---|
Variables
selector:String
The selector for the Consumer. This is an expression that is passed to the destination which uses it to filter the messages delivered to the Consumer.
Before a call to the subscribe()
method, this property
can be set with no side effects.
After the Consumer has subscribed to its destination, changing this
value has the side effect of updating the Consumer's subscription to
use the new selector expression immediately.
The remote destination must understand the value of the selector expression.
subtopic:String
Provides access to the subtopic for the remote destination that the MessageAgent uses.