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
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  DeliveryDelay
  
  
  Declaration
  
    TimeSpan DeliveryDelay { get; set; }
   
  Property Value
  
    
      
        | Type | Description | 
    
    
      
        | System.TimeSpan |  | 
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  DeliveryMode
  
  
  Declaration
  
    MsgDeliveryMode DeliveryMode { get; set; }
   
  Property Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  DisableMessageID
  
  
  Declaration
  
    bool DisableMessageID { get; set; }
   
  Property Value
  
    
      
        | Type | Description | 
    
    
      
        | System.Boolean |  | 
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  DisableMessageTimestamp
  
  
  Declaration
  
    bool DisableMessageTimestamp { get; set; }
   
  Property Value
  
    
      
        | Type | Description | 
    
    
      
        | System.Boolean |  | 
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Priority
  
  
  Declaration
  
    MsgPriority Priority { get; set; }
   
  Property Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  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
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  RequestTimeout
  
  
  Declaration
  
    TimeSpan RequestTimeout { get; set; }
   
  Property Value
  
    
      
        | Type | Description | 
    
    
      
        | System.TimeSpan |  | 
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  TimeToLive
  
  
  Declaration
  
    TimeSpan TimeToLive { get; set; }
   
  Property Value
  
    
      
        | Type | Description | 
    
    
      
        | System.TimeSpan |  | 
    
  
  Methods
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Close()
  
  
  Declaration
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  CreateBytesMessage()
  Creates a new binary message
Declaration
  
    IBytesMessage CreateBytesMessage()
   
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  CreateBytesMessage(Byte[])
  Creates a new binary message with the given body
Declaration
  
    IBytesMessage CreateBytesMessage(byte[] body)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Byte[] | body |  | 
    
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  CreateMapMessage()
  Creates a new Map message which contains primitive key and value pairs
Declaration
  
    IMapMessage CreateMapMessage()
   
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  CreateMessage()
  Creates a new message with an empty body
Declaration
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  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
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  CreateStreamMessage()
  Creates a new stream message
Declaration
  
    IStreamMessage CreateStreamMessage()
   
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  CreateTextMessage()
  Creates a new text message with an empty body
Declaration
  
    ITextMessage CreateTextMessage()
   
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  CreateTextMessage(String)
  Creates a new text message with the given body
Declaration
  
    ITextMessage CreateTextMessage(string text)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.String | text |  | 
    
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Send(IDestination, IMessage)
  Sends the message to the given destination
Declaration
  
    void Send(IDestination destination, IMessage message)
   
  Parameters
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Send(IDestination, IMessage, CompletionListener)
  Sends the message to the given destination
Declaration
  
    void Send(IDestination destination, IMessage message, CompletionListener completionListener)
   
  Parameters
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  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
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Send(IDestination, IMessage, MsgDeliveryMode, MsgPriority, TimeSpan, CompletionListener)
  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, CompletionListener completionListener)
   
  Parameters
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Send(IMessage)
  Sends the message to the default destination for this producer
Declaration
  
    void Send(IMessage message)
   
  Parameters
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Send(IMessage, CompletionListener)
  Sends the message to the default destination for this producer
Declaration
  
    void Send(IMessage message, CompletionListener completionListener)
   
  Parameters
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  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
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Send(IMessage, MsgDeliveryMode, MsgPriority, TimeSpan, CompletionListener)
  Sends the message to the default destination with the explicit QoS configuration
Declaration
  
    void Send(IMessage message, MsgDeliveryMode deliveryMode, MsgPriority priority, TimeSpan timeToLive, CompletionListener completionListener)
   
  Parameters
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  SendAsync(IDestination, IMessage)
  Sends the message to the given destination
Declaration
  
    Task SendAsync(IDestination destination, IMessage message)
   
  Parameters
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.Threading.Tasks.Task |  | 
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  SendAsync(IDestination, IMessage, MsgDeliveryMode, MsgPriority, TimeSpan)
  Sends the message to the given destination with the explicit QoS configuration
Declaration
  
    Task SendAsync(IDestination destination, IMessage message, MsgDeliveryMode deliveryMode, MsgPriority priority, TimeSpan timeToLive)
   
  Parameters
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.Threading.Tasks.Task |  | 
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  SendAsync(IMessage)
  Sends the message to the default destination for this producer
Declaration
  
    Task SendAsync(IMessage message)
   
  Parameters
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.Threading.Tasks.Task |  | 
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  SendAsync(IMessage, MsgDeliveryMode, MsgPriority, TimeSpan)
  Sends the message to the default destination with the explicit QoS configuration
Declaration
  
    Task SendAsync(IMessage message, MsgDeliveryMode deliveryMode, MsgPriority priority, TimeSpan timeToLive)
   
  Parameters
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.Threading.Tasks.Task |  |