C# Class Apache.NMS.ActiveMQ.MessageProducer

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

Protected Properties

Свойство Type Description
disposed bool

Méthodes publiques

Méthode 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

Méthodes protégées

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

Private Methods

Méthode 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 méthode

public Close ( ) : void
Résultat void

CreateBytesMessage() public méthode

public CreateBytesMessage ( ) : IBytesMessage
Résultat IBytesMessage

CreateBytesMessage() public méthode

public CreateBytesMessage ( byte body ) : IBytesMessage
body byte
Résultat IBytesMessage

CreateMapMessage() public méthode

public CreateMapMessage ( ) : IMapMessage
Résultat IMapMessage

CreateMessage() public méthode

public CreateMessage ( ) : IMessage
Résultat IMessage

CreateObjectMessage() public méthode

public CreateObjectMessage ( object body ) : IObjectMessage
body object
Résultat IObjectMessage

CreateStreamMessage() public méthode

public CreateStreamMessage ( ) : IStreamMessage
Résultat IStreamMessage

CreateTextMessage() public méthode

public CreateTextMessage ( ) : ITextMessage
Résultat ITextMessage

CreateTextMessage() public méthode

public CreateTextMessage ( string text ) : ITextMessage
text string
Résultat ITextMessage

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

MessageProducer() public méthode

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
Résultat System

Send() public méthode

public Send ( IDestination destination, IMessage message ) : void
destination IDestination
message IMessage
Résultat void

Send() public méthode

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
Résultat void

Send() protected méthode

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
Résultat void

Send() public méthode

public Send ( IMessage message ) : void
message IMessage
Résultat void

Send() public méthode

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

Property Details

disposed protected_oe property

protected bool disposed
Résultat bool