Method
virtual void Send(Queue
queue,Message
message,MessageDeliveryMode
deliveryMode, int priority, long timeToLive ); virtual void Send(Queue
queue,Message
message, int deliveryMode, int priority, long timeToLive ); virtual void Send(Queue
queue,Message
message );
Send a message.
QueueSender
inherits send methods from MessageProducer
, and also defines these methods, which specialize the destination parameter to a queue; see MessageProducer.Send
.
Parameter
|
Description
|
---|---|
queue
|
When present, the call sends the message to this queue.
When absent, the call sends the message to the sender’s default queue. When the sender does not specify a default, the send call must supply this parameter (that is, it cannot use one of the inherited methods that omit this parameter).
|
message
|
Send this message object.
|
deliveryMode
|
When present, the call sends the message with this delivery mode.
This argument may be either an enumerated value (see
MessageDeliveryMode ) or an integer (see DeliveryMode ). We recommend enumerated values, because they enable .NET to do stronger type checking at compile time, which can enhance program reliability.
When absent, the call sends the message with the sender’s default delivery mode.
|
priority
|
When present, the call sends the message with this priority.
Priority affects the order in which the server delivers messages to consumers (higher values first). The JMS specification defines ten levels of priority value, from zero (lowest priority) to 9 (highest priority). The specification suggests that clients consider 0–4 as gradations of normal priority, and priorities 5–9 as gradations of expedited priority.
When absent, the call sends the message with the sender’s default priority.
|
timeToLive
|
When present, the call uses this value (in milliseconds) to compute the message expiration.
When absent, the call uses the sender’s default value to compute expiration.
Whenever your application uses non-zero values for message expiration or time-to-live, you must ensure that clocks are synchronized among all the host computers that send and receive messages. Synchronize clocks to a tolerance that is a very small fraction of the smallest or time-to-live.
|
TIBCO Enterprise Message Service™ .NET Reference System Release 4.3, February 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |