C# 클래스 Apache.NMS.ActiveMQ.MessageConsumer

An object capable of receiving messages from some destination
상속: IMessageConsumer, IDispatcher
파일 보기 프로젝트 열기: ThorTech/apache-nms 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
disposed bool

Private Properties

프로퍼티 타입 설명
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

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void
DoClientAcknowledge ( ActiveMQMessage message ) : void
DoIndividualAcknowledge ( ActiveMQMessage message ) : void
DoNothingAcknowledge ( ActiveMQMessage message ) : void
SendPullRequest ( long timeout ) : void

비공개 메소드들

메소드 설명
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.

메소드 상세

AfterMessageIsConsumed() 공개 메소드

public AfterMessageIsConsumed ( MessageDispatch dispatch, bool expired ) : void
dispatch Apache.NMS.ActiveMQ.Commands.MessageDispatch
expired bool
리턴 void

BeforeMessageIsConsumed() 공개 메소드

public BeforeMessageIsConsumed ( MessageDispatch dispatch ) : void
dispatch Apache.NMS.ActiveMQ.Commands.MessageDispatch
리턴 void

Close() 공개 메소드

public Close ( ) : void
리턴 void

DeliverAcks() 공개 메소드

public DeliverAcks ( ) : void
리턴 void

Dispatch() 공개 메소드

public Dispatch ( MessageDispatch dispatch ) : void
dispatch Apache.NMS.ActiveMQ.Commands.MessageDispatch
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

DoClientAcknowledge() 보호된 메소드

protected DoClientAcknowledge ( ActiveMQMessage message ) : void
message Apache.NMS.ActiveMQ.Commands.ActiveMQMessage
리턴 void

DoIndividualAcknowledge() 보호된 메소드

protected DoIndividualAcknowledge ( ActiveMQMessage message ) : void
message Apache.NMS.ActiveMQ.Commands.ActiveMQMessage
리턴 void

DoNothingAcknowledge() 보호된 메소드

protected DoNothingAcknowledge ( ActiveMQMessage message ) : void
message Apache.NMS.ActiveMQ.Commands.ActiveMQMessage
리턴 void

Iterate() 공개 메소드

public Iterate ( ) : bool
리턴 bool

Receive() 공개 메소드

public Receive ( ) : IMessage
리턴 IMessage

Receive() 공개 메소드

public Receive ( System.TimeSpan timeout ) : IMessage
timeout System.TimeSpan
리턴 IMessage

ReceiveNoWait() 공개 메소드

public ReceiveNoWait ( ) : IMessage
리턴 IMessage

SendPullRequest() 보호된 메소드

protected SendPullRequest ( long timeout ) : void
timeout long
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

Stop() 공개 메소드

public Stop ( ) : void
리턴 void

프로퍼티 상세

disposed 보호되어 있는 프로퍼티

protected bool disposed
리턴 bool