C# Class Apache.NMS.ActiveMQ.MessageProducer

An object capable of sending messages to some destination
Inheritance: IMessageProducer
Show file Open project: ThorTech/apache-nms Class Usage Examples

Protected Properties

Property Type Description
disposed bool

Public Methods

Method Description
Close ( ) : void
CreateBytesMessage ( ) : IBytesMessage
CreateBytesMessage ( byte body ) : IBytesMessage
CreateMapMessage ( ) : IMapMessage
CreateMessage ( ) : IMessage
CreateObjectMessage ( object body ) : IObjectMessage
CreateStreamMessage ( ) : IStreamMessage
CreateTextMessage ( ) : ITextMessage
CreateTextMessage ( string text ) : ITextMessage
Dispose ( ) : void
MessageProducer ( Session session, ProducerId id, ActiveMQDestination destination, System.TimeSpan requestTimeout ) : System
Send ( IDestination destination, IMessage message ) : void
Send ( IDestination destination, IMessage message, MsgDeliveryMode deliveryMode, MsgPriority priority, System.TimeSpan timeToLive ) : void
Send ( IMessage message ) : void
Send ( IMessage message, MsgDeliveryMode deliveryMode, MsgPriority priority, System.TimeSpan timeToLive ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void
Send ( IDestination destination, IMessage message, MsgDeliveryMode deliveryMode, MsgPriority priority, System.TimeSpan timeToLive, bool specifiedTimeToLive ) : void

Private Methods

Method Description
OnProducerAck ( ProducerAck ack ) : void
Shutdown ( ) : void

Called from the Parent session to deactivate this Producer, when a parent is closed all children are automatically removed from the broker so this method circumvents the need to send a Remove command to the broker.

Method Details

Close() public method

public Close ( ) : void
return void

CreateBytesMessage() public method

public CreateBytesMessage ( ) : IBytesMessage
return IBytesMessage

CreateBytesMessage() public method

public CreateBytesMessage ( byte body ) : IBytesMessage
body byte
return IBytesMessage

CreateMapMessage() public method

public CreateMapMessage ( ) : IMapMessage
return IMapMessage

CreateMessage() public method

public CreateMessage ( ) : IMessage
return IMessage

CreateObjectMessage() public method

public CreateObjectMessage ( object body ) : IObjectMessage
body object
return IObjectMessage

CreateStreamMessage() public method

public CreateStreamMessage ( ) : IStreamMessage
return IStreamMessage

CreateTextMessage() public method

public CreateTextMessage ( ) : ITextMessage
return ITextMessage

CreateTextMessage() public method

public CreateTextMessage ( string text ) : ITextMessage
text string
return ITextMessage

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

MessageProducer() public method

public MessageProducer ( Session session, ProducerId id, ActiveMQDestination destination, System.TimeSpan requestTimeout ) : System
session Session
id Apache.NMS.ActiveMQ.Commands.ProducerId
destination Apache.NMS.ActiveMQ.Commands.ActiveMQDestination
requestTimeout System.TimeSpan
return System

Send() public method

public Send ( IDestination destination, IMessage message ) : void
destination IDestination
message IMessage
return void

Send() public method

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

Send() protected method

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

Send() public method

public Send ( IMessage message ) : void
message IMessage
return void

Send() public method

public Send ( IMessage message, MsgDeliveryMode deliveryMode, MsgPriority priority, System.TimeSpan timeToLive ) : void
message IMessage
deliveryMode MsgDeliveryMode
priority MsgPriority
timeToLive System.TimeSpan
return void

Property Details

disposed protected property

protected bool disposed
return bool