Interface INMSProducer
  
  An object capable of sending messages to some destination
    Inherited Members
    
      System.IDisposable.Dispose()
    
   
  
  Assembly: Apache.NMS.dll
  Syntax
  
    public interface INMSProducer : 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
  
  
  NMSCorrelationID
  The correlation ID used to correlate messages from conversations or long running business processes.
Declaration
  
    string NMSCorrelationID { get; set; }
   
  Property Value
  
    
      
        | Type | Description | 
    
    
      
        | System.String |  | 
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  NMSReplyTo
  The destination that the consumer of this message should send replies to
Declaration
  
    IDestination NMSReplyTo { get; set; }
   
  Property Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  NMSType
  Specifies that messages sent using this NMSProducer will
have their NMSType header value set to the specified message type.
Declaration
  
    string NMSType { get; set; }
   
  Property Value
  
    
      
        | Type | Description | 
    
    
      
        | System.String |  | 
    
  
  
    |
    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
  
  
  Properties
  Provides access to the message properties (headers).
Declaration
  
    IPrimitiveMap Properties { get; }
   
  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
  
  
  ClearProperties()
  Clears a message's properties.
The message's header fields and body are not cleared.
Declaration
  
  
    |
    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
  
  
  GetAsync()
  
  
  Declaration
  
    CompletionListener GetAsync()
   
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Send(IDestination, IMessage)
  
  
  Declaration
  
    INMSProducer Send(IDestination destination, IMessage message)
   
  Parameters
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Send(IDestination, IPrimitiveMap)
  
  
  Declaration
  
    INMSProducer Send(IDestination destination, IPrimitiveMap body)
   
  Parameters
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Send(IDestination, Byte[])
  
  
  Declaration
  
    INMSProducer Send(IDestination destination, byte[] body)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | IDestination | destination |  | 
      
        | System.Byte[] | body |  | 
    
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Send(IDestination, Object)
  
  
  Declaration
  
    INMSProducer Send(IDestination destination, object body)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | IDestination | destination |  | 
      
        | System.Object | body |  | 
    
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Send(IDestination, String)
  
  
  Declaration
  
    INMSProducer Send(IDestination destination, string body)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | IDestination | destination |  | 
      
        | System.String | body |  | 
    
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  SendAsync(IDestination, IMessage)
  
  
  Declaration
  
    Task<INMSProducer> SendAsync(IDestination destination, IMessage message)
   
  Parameters
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  SendAsync(IDestination, IPrimitiveMap)
  
  
  Declaration
  
    Task<INMSProducer> SendAsync(IDestination destination, IPrimitiveMap body)
   
  Parameters
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  SendAsync(IDestination, Byte[])
  
  
  Declaration
  
    Task<INMSProducer> SendAsync(IDestination destination, byte[] body)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | IDestination | destination |  | 
      
        | System.Byte[] | body |  | 
    
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  SendAsync(IDestination, Object)
  
  
  Declaration
  
    Task<INMSProducer> SendAsync(IDestination destination, object body)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | IDestination | destination |  | 
      
        | System.Object | body |  | 
    
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  SendAsync(IDestination, String)
  
  
  Declaration
  
    Task<INMSProducer> SendAsync(IDestination destination, string body)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | IDestination | destination |  | 
      
        | System.String | body |  | 
    
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  SetAsync(CompletionListener)
  
  
  Declaration
  
    INMSProducer SetAsync(CompletionListener completionListener)
   
  Parameters
  
  Returns