Table of Contents

Class MessageProducer

Namespace
Apache.NMS.ActiveMQ
Assembly
Apache.NMS.ActiveMQ.dll
public class MessageProducer : IMessageProducer, IDisposable
Inheritance
MessageProducer
Implements
IMessageProducer
Inherited Members

Constructors

MessageProducer(Session, ProducerId, ActiveMQDestination, TimeSpan)

public MessageProducer(Session session, ProducerId id, ActiveMQDestination destination, TimeSpan requestTimeout)

Parameters

session Session
id ProducerId
destination ActiveMQDestination
requestTimeout TimeSpan

Fields

disposed

protected bool disposed

Field Value

bool

Properties

DeliveryMode

public MsgDeliveryMode DeliveryMode { get; set; }

Property Value

MsgDeliveryMode

DisableMessageID

public bool DisableMessageID { get; set; }

Property Value

bool

DisableMessageTimestamp

public bool DisableMessageTimestamp { get; set; }

Property Value

bool

Priority

public MsgPriority Priority { get; set; }

Property Value

MsgPriority

ProducerId

public ProducerId ProducerId { get; }

Property Value

ProducerId

ProducerInfo

public ProducerInfo ProducerInfo { get; }

Property Value

ProducerInfo

ProducerTransformer

public ProducerTransformerDelegate ProducerTransformer { get; set; }

Property Value

ProducerTransformerDelegate

RequestTimeout

public TimeSpan RequestTimeout { get; set; }

Property Value

TimeSpan

TimeToLive

public TimeSpan TimeToLive { get; set; }

Property Value

TimeSpan

Methods

Close()

public void Close()

CreateBytesMessage()

public IBytesMessage CreateBytesMessage()

Returns

IBytesMessage

CreateBytesMessage(byte[])

public IBytesMessage CreateBytesMessage(byte[] body)

Parameters

body byte[]

Returns

IBytesMessage

CreateMapMessage()

public IMapMessage CreateMapMessage()

Returns

IMapMessage

CreateMessage()

public IMessage CreateMessage()

Returns

IMessage

CreateObjectMessage(object)

public IObjectMessage CreateObjectMessage(object body)

Parameters

body object

Returns

IObjectMessage

CreateStreamMessage()

public IStreamMessage CreateStreamMessage()

Returns

IStreamMessage

CreateTextMessage()

public ITextMessage CreateTextMessage()

Returns

ITextMessage

CreateTextMessage(string)

public ITextMessage CreateTextMessage(string text)

Parameters

text string

Returns

ITextMessage

Dispose()

public void Dispose()

Dispose(bool)

protected void Dispose(bool disposing)

Parameters

disposing bool

~MessageProducer()

protected ~MessageProducer()

Send(IDestination, IMessage)

public void Send(IDestination destination, IMessage message)

Parameters

destination IDestination
message IMessage

Send(IDestination, IMessage, MsgDeliveryMode, MsgPriority, TimeSpan)

public void Send(IDestination destination, IMessage message, MsgDeliveryMode deliveryMode, MsgPriority priority, TimeSpan timeToLive)

Parameters

destination IDestination
message IMessage
deliveryMode MsgDeliveryMode
priority MsgPriority
timeToLive TimeSpan

Send(IDestination, IMessage, MsgDeliveryMode, MsgPriority, TimeSpan, bool)

protected void Send(IDestination destination, IMessage message, MsgDeliveryMode deliveryMode, MsgPriority priority, TimeSpan timeToLive, bool specifiedTimeToLive)

Parameters

destination IDestination
message IMessage
deliveryMode MsgDeliveryMode
priority MsgPriority
timeToLive TimeSpan
specifiedTimeToLive bool

Send(IMessage)

public void Send(IMessage message)

Parameters

message IMessage

Send(IMessage, MsgDeliveryMode, MsgPriority, TimeSpan)

public void Send(IMessage message, MsgDeliveryMode deliveryMode, MsgPriority priority, TimeSpan timeToLive)

Parameters

message IMessage
deliveryMode MsgDeliveryMode
priority MsgPriority
timeToLive TimeSpan