C# Class Apache.NMS.ActiveMQ.MessageConsumer

An object capable of receiving messages from some destination
Inheritance: IMessageConsumer, IDispatcher
Afficher le fichier Open project: ThorTech/apache-nms Class Usage Examples

Protected Properties

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

Private Properties

Свойство Type Description
AckLater void
Acknowledge void
CheckClosed void
CheckMessageListener void
ClearMessagesInProgress void
Commit void
CreateActiveMQMessage Apache.NMS.ActiveMQ.Commands.ActiveMQMessage
Dequeue Apache.NMS.ActiveMQ.Commands.MessageDispatch
DoClose void
InProgressClearRequired void
MakeAckForAllDeliveredMessages Apache.NMS.ActiveMQ.Commands.MessageAck
MessageConsumer System
Rollback void
RollbackHelper void
Shutdown void

Méthodes publiques

Méthode Description
AfterMessageIsConsumed ( MessageDispatch dispatch, bool expired ) : void
BeforeMessageIsConsumed ( MessageDispatch dispatch ) : void
Close ( ) : void
DeliverAcks ( ) : void
Dispatch ( MessageDispatch dispatch ) : void
Dispose ( ) : void
Iterate ( ) : bool
Receive ( ) : IMessage
Receive ( System.TimeSpan timeout ) : IMessage
ReceiveNoWait ( ) : IMessage
Start ( ) : void
Stop ( ) : void

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void
DoClientAcknowledge ( ActiveMQMessage message ) : void
DoIndividualAcknowledge ( ActiveMQMessage message ) : void
DoNothingAcknowledge ( ActiveMQMessage message ) : void
SendPullRequest ( long timeout ) : void

Private Methods

Méthode Description
AckLater ( MessageDispatch dispatch, AckType type ) : void
Acknowledge ( ) : void
CheckClosed ( ) : void
CheckMessageListener ( ) : void
ClearMessagesInProgress ( ) : void
Commit ( ) : void
CreateActiveMQMessage ( MessageDispatch dispatch ) : ActiveMQMessage
Dequeue ( System.TimeSpan timeout ) : MessageDispatch

Used to get an enqueued message from the unconsumedMessages list. The amount of time this method blocks is based on the timeout value. if timeout == Timeout.Infinite then it blocks until a message is received. if timeout == 0 then it it tries to not block at all, it returns a message if it is available if timeout > 0 then it blocks up to timeout amount of time. Expired messages will consumed by this method.

DoClose ( ) : void
InProgressClearRequired ( ) : void
MakeAckForAllDeliveredMessages ( AckType type ) : MessageAck
MessageConsumer ( Session session, ConsumerId id, ActiveMQDestination destination, String name, String selector, int prefetch, int maxPendingMessageCount, bool noLocal, bool browser, bool dispatchAsync ) : System
Rollback ( ) : void
RollbackHelper ( Object arg ) : void
Shutdown ( ) : void

Called from the parent Session of this Consumer to indicate that its parent session is closing and this Consumer should close down but not send any message to the Broker as the parent close will take care of removing its child resources at the broker.

Method Details

AfterMessageIsConsumed() public méthode

public AfterMessageIsConsumed ( MessageDispatch dispatch, bool expired ) : void
dispatch Apache.NMS.ActiveMQ.Commands.MessageDispatch
expired bool
Résultat void

BeforeMessageIsConsumed() public méthode

public BeforeMessageIsConsumed ( MessageDispatch dispatch ) : void
dispatch Apache.NMS.ActiveMQ.Commands.MessageDispatch
Résultat void

Close() public méthode

public Close ( ) : void
Résultat void

DeliverAcks() public méthode

public DeliverAcks ( ) : void
Résultat void

Dispatch() public méthode

public Dispatch ( MessageDispatch dispatch ) : void
dispatch Apache.NMS.ActiveMQ.Commands.MessageDispatch
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

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

DoClientAcknowledge() protected méthode

protected DoClientAcknowledge ( ActiveMQMessage message ) : void
message Apache.NMS.ActiveMQ.Commands.ActiveMQMessage
Résultat void

DoIndividualAcknowledge() protected méthode

protected DoIndividualAcknowledge ( ActiveMQMessage message ) : void
message Apache.NMS.ActiveMQ.Commands.ActiveMQMessage
Résultat void

DoNothingAcknowledge() protected méthode

protected DoNothingAcknowledge ( ActiveMQMessage message ) : void
message Apache.NMS.ActiveMQ.Commands.ActiveMQMessage
Résultat void

Iterate() public méthode

public Iterate ( ) : bool
Résultat bool

Receive() public méthode

public Receive ( ) : IMessage
Résultat IMessage

Receive() public méthode

public Receive ( System.TimeSpan timeout ) : IMessage
timeout System.TimeSpan
Résultat IMessage

ReceiveNoWait() public méthode

public ReceiveNoWait ( ) : IMessage
Résultat IMessage

SendPullRequest() protected méthode

protected SendPullRequest ( long timeout ) : void
timeout long
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

Stop() public méthode

public Stop ( ) : void
Résultat void

Property Details

disposed protected_oe property

protected bool disposed
Résultat bool