Show / Hide Table of Contents

    Interface IMessage

    Represents a message either to be sent to a message broker or received from a message broker.

    Namespace: Apache.NMS
    Assembly: Apache.NMS.dll
    Syntax
    public interface IMessage

    Properties

    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

    NMSDeliveryMode

    Whether or not this message is persistent.

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

    NMSDestination

    The destination of the message. This property is set by the IMessageProducer.

    Declaration
    IDestination NMSDestination { get; set; }
    Property Value
    Type Description
    IDestination

    NMSMessageId

    The message ID which is set by the provider.

    Declaration
    string NMSMessageId { get; set; }
    Property Value
    Type Description
    System.String

    NMSPriority

    The Priority of this message.

    Declaration
    MsgPriority NMSPriority { get; set; }
    Property Value
    Type Description
    MsgPriority

    NMSRedelivered

    Returns true if this message has been redelivered to this or another consumer before being acknowledged successfully.

    Declaration
    bool NMSRedelivered { get; set; }
    Property Value
    Type Description
    System.Boolean

    NMSReplyTo

    The destination that the consumer of this message should send replies to

    Declaration
    IDestination NMSReplyTo { get; set; }
    Property Value
    Type Description
    IDestination

    NMSTimestamp

    The timestamp of when the message was pubished in UTC time. If the publisher disables setting the timestamp on the message, the time will be set to the start of the UNIX epoc (1970-01-01 00:00:00).

    Declaration
    DateTime NMSTimestamp { get; set; }
    Property Value
    Type Description
    System.DateTime

    NMSTimeToLive

    The amount of time for which this message is valid. Zero if this message does not expire.

    Declaration
    TimeSpan NMSTimeToLive { get; set; }
    Property Value
    Type Description
    System.TimeSpan

    NMSType

    The type name of this message.

    Declaration
    string NMSType { get; set; }
    Property Value
    Type Description
    System.String

    Properties

    Provides access to the message properties (headers).

    Declaration
    IPrimitiveMap Properties { get; }
    Property Value
    Type Description
    IPrimitiveMap

    Methods

    Acknowledge()

    If using client acknowledgement mode on the session, then this method will acknowledge that the message has been processed correctly.

    Declaration
    void Acknowledge()

    ClearBody()

    Clears out the message body. Clearing a message's body does not clear its header values or property entries.

    If this message body was read-only, calling this method leaves the message body in the same state as an empty body in a newly created message.

    Declaration
    void ClearBody()

    ClearProperties()

    Clears a message's properties.

    The message's header fields and body are not cleared.

    Declaration
    void ClearProperties()
    Back to top Copyright © 2005-2019 Apache Software Foundation project
    Generated by DocFX