Show / Hide Table of Contents

    Interface IMessageProducer

    An object capable of sending messages to some destination

    Inherited Members
    System.IDisposable.Dispose()
    Namespace: Apache.NMS
    Assembly: Apache.NMS.dll
    Syntax
    public interface IMessageProducer : IDisposable

    Properties

    DeliveryMode

    Declaration
    MsgDeliveryMode DeliveryMode { get; set; }
    Property Value
    Type Description
    MsgDeliveryMode

    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
    Type Description
    MsgPriority

    ProducerTransformer

    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
    Type Description
    ProducerTransformerDelegate

    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()

    Close the producer.

    Declaration
    void Close()

    CreateBytesMessage()

    Creates a new binary message

    Declaration
    IBytesMessage CreateBytesMessage()
    Returns
    Type Description
    IBytesMessage

    CreateBytesMessage(Byte[])

    Creates a new binary message with the given body

    Declaration
    IBytesMessage CreateBytesMessage(byte[] body)
    Parameters
    Type Name Description
    System.Byte[] body
    Returns
    Type Description
    IBytesMessage

    CreateMapMessage()

    Creates a new Map message which contains primitive key and value pairs

    Declaration
    IMapMessage CreateMapMessage()
    Returns
    Type Description
    IMapMessage

    CreateMessage()

    Creates a new message with an empty body

    Declaration
    IMessage CreateMessage()
    Returns
    Type Description
    IMessage

    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
    Type Description
    IObjectMessage

    CreateStreamMessage()

    Creates a new stream message

    Declaration
    IStreamMessage CreateStreamMessage()
    Returns
    Type Description
    IStreamMessage

    CreateTextMessage()

    Creates a new text message with an empty body

    Declaration
    ITextMessage CreateTextMessage()
    Returns
    Type Description
    ITextMessage

    CreateTextMessage(String)

    Creates a new text message with the given body

    Declaration
    ITextMessage CreateTextMessage(string text)
    Parameters
    Type Name Description
    System.String text
    Returns
    Type Description
    ITextMessage

    Send(IDestination, IMessage)

    Sends the message to the given destination

    Declaration
    void Send(IDestination destination, IMessage message)
    Parameters
    Type Name Description
    IDestination destination
    IMessage message

    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
    Type Name Description
    IDestination destination
    IMessage message
    MsgDeliveryMode deliveryMode
    MsgPriority priority
    System.TimeSpan timeToLive

    Send(IMessage)

    Sends the message to the default destination for this producer

    Declaration
    void Send(IMessage message)
    Parameters
    Type Name Description
    IMessage message

    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
    Type Name Description
    IMessage message
    MsgDeliveryMode deliveryMode
    MsgPriority priority
    System.TimeSpan timeToLive
    Back to top Copyright © 2005-2019 Apache Software Foundation project
    Generated by DocFX