Interface IMessageProducer
An object capable of sending messages to some destination
Inherited Members
System.IDisposable.Dispose()
Assembly: Apache.NMS.dll
Syntax
public interface IMessageProducer : IDisposable
Properties
DeliveryMode
Declaration
MsgDeliveryMode DeliveryMode { get; set; }
Property Value
DisableMessageID
Declaration
bool DisableMessageID { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
DisableMessageTimestamp
Declaration
bool DisableMessageTimestamp { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Priority
Declaration
MsgPriority Priority { get; set; }
Property Value
A delegate that is called each time a Message is sent from this Producer which allows
the application to perform any needed transformations on the Message before it is sent.
Declaration
ProducerTransformerDelegate ProducerTransformer { get; set; }
Property Value
RequestTimeout
Declaration
TimeSpan RequestTimeout { get; set; }
Property Value
Type |
Description |
System.TimeSpan |
|
TimeToLive
Declaration
TimeSpan TimeToLive { get; set; }
Property Value
Type |
Description |
System.TimeSpan |
|
Methods
Close()
Declaration
CreateBytesMessage()
Creates a new binary message
Declaration
IBytesMessage CreateBytesMessage()
Returns
CreateBytesMessage(Byte[])
Creates a new binary message with the given body
Declaration
IBytesMessage CreateBytesMessage(byte[] body)
Parameters
Type |
Name |
Description |
System.Byte[] |
body |
|
Returns
CreateMapMessage()
Creates a new Map message which contains primitive key and value pairs
Declaration
IMapMessage CreateMapMessage()
Returns
CreateMessage()
Creates a new message with an empty body
Declaration
Returns
CreateObjectMessage(Object)
Creates a new Object message containing the given .NET object as the body
Declaration
IObjectMessage CreateObjectMessage(object body)
Parameters
Type |
Name |
Description |
System.Object |
body |
|
Returns
CreateStreamMessage()
Creates a new stream message
Declaration
IStreamMessage CreateStreamMessage()
Returns
CreateTextMessage()
Creates a new text message with an empty body
Declaration
ITextMessage CreateTextMessage()
Returns
CreateTextMessage(String)
Creates a new text message with the given body
Declaration
ITextMessage CreateTextMessage(string text)
Parameters
Type |
Name |
Description |
System.String |
text |
|
Returns
Send(IDestination, IMessage)
Sends the message to the given destination
Declaration
void Send(IDestination destination, IMessage message)
Parameters
Send(IDestination, IMessage, MsgDeliveryMode, MsgPriority, TimeSpan)
Sends the message to the given destination with the explicit QoS configuration
Declaration
void Send(IDestination destination, IMessage message, MsgDeliveryMode deliveryMode, MsgPriority priority, TimeSpan timeToLive)
Parameters
Send(IMessage)
Sends the message to the default destination for this producer
Declaration
void Send(IMessage message)
Parameters
Send(IMessage, MsgDeliveryMode, MsgPriority, TimeSpan)
Sends the message to the default destination with the explicit QoS configuration
Declaration
void Send(IMessage message, MsgDeliveryMode deliveryMode, MsgPriority priority, TimeSpan timeToLive)
Parameters