MessageConsumer


Class

Declaration

class MessageConsumer 

Purpose

Root behavior of all consumers.

Remarks

Consumers can receive messages synchronously (using the Receive methods), or asynchronously.

Consumers can receive messages asynchronously in either of two idioms. Programmers may select either idiom—but not both (which would cause duplicate message processing, with undefined behavior).

Subclasses

QueueReceiver

TopicSubscriber

(Sheet 1 of 2)

Member
Description
Events
MessageHandler
The client library raises an event when a message arrives at the destination. The program implements a handler delegate to processes it asynchronously, and registers the delegate here. See Remarks, above.
Properties
MessageListener
IMessageListener {get; set;}
When a message arrives, the client library calls this listener’s onMessage method with the message as its argument. The program implements the message listener interface, and registers a message listener object by setting this property. See Remarks, above.
MessageSelector
string {get;}
A message selector restricts the set of messages that the consumer receives to those that match the selector; see Message Selectors.
Programs can set this property only when creating the consumer object; see Session.CreateConsumer .

 

Method
Description
Page
78
79
80

See Also

IMessageListener

EMSMessageHandler


TIBCO Enterprise Message Service™ .NET Reference
System Release 4.3, February 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com