C# 클래스 SevenDigital.Messaging.MessageReceiving.RabbitPolling.RabbitMqPollingNode

A pull-based, polling, blocking RabbitMQ work item queue
상속: ITypedPollingNode
파일 보기 프로젝트 열기: i-e-b/SevenDigital.Messaging 1 사용 예제들

공개 메소드들

메소드 설명
AddMessageType ( Type type ) : void

Add a message type that might be bound to the endpoint. This is used to rebuild endpoints in case of failure.

BlockUntilReady ( ) : bool

Advisory method: block if the queue is waiting to be populated.

Enqueue ( IPendingMessage work ) : void

Not currently implemented. Will throw an exception.

This might be useful at some point to inject test messages?

Length ( ) : int

Approximate snapshot length

RabbitMqPollingNode ( IRoutingEndpoint endpoint, IMessagingBase messagingBase, ISleepWrapper sleeper ) : System

Create a work item queue that will try to pull items from a named RabbitMQ endpoint

Stop ( ) : void

Stop receiving messages

TryDequeue ( ) : IWorkQueueItem>

Try and get an item from this queue. Success is encoded in the WQI result 'HasItem'

비공개 메소드들

메소드 설명
DoubleAck ( Exception exception ) : bool
EnsureQueuesAndPollForMessage ( ) : IPendingMessage
IsMissingQueue ( Exception exception ) : bool
SleepingGetMessage ( ) : IPendingMessage
TryRebuildQueues ( ) : void

메소드 상세

AddMessageType() 공개 메소드

Add a message type that might be bound to the endpoint. This is used to rebuild endpoints in case of failure.
public AddMessageType ( Type type ) : void
type System.Type
리턴 void

BlockUntilReady() 공개 메소드

Advisory method: block if the queue is waiting to be populated.
public BlockUntilReady ( ) : bool
리턴 bool

Enqueue() 공개 메소드

Not currently implemented. Will throw an exception.
This might be useful at some point to inject test messages?
public Enqueue ( IPendingMessage work ) : void
work IPendingMessage
리턴 void

Length() 공개 메소드

Approximate snapshot length
public Length ( ) : int
리턴 int

RabbitMqPollingNode() 공개 메소드

Create a work item queue that will try to pull items from a named RabbitMQ endpoint
public RabbitMqPollingNode ( IRoutingEndpoint endpoint, IMessagingBase messagingBase, ISleepWrapper sleeper ) : System
endpoint IRoutingEndpoint Destination endpoint to pull messages from
messagingBase IMessagingBase RabbitMQ connection provider
sleeper ISleepWrapper Sleeper to rate limit polling
리턴 System

Stop() 공개 메소드

Stop receiving messages
public Stop ( ) : void
리턴 void

TryDequeue() 공개 메소드

Try and get an item from this queue. Success is encoded in the WQI result 'HasItem'
public TryDequeue ( ) : IWorkQueueItem>
리턴 IWorkQueueItem>