C# 클래스 SevenDigital.Messaging.MessageReceiving.LocalQueue.LocalQueuePollingNode

Message polling node that reads from a locally accessible DiskQueue
상속: ITypedPollingNode
파일 보기 프로젝트 열기: i-e-b/SevenDigital.Messaging

공개 메소드들

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

A message type for which to poll

BlockUntilReady ( ) : bool

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

Always immediately returns true in this instance.

Enqueue ( IPendingMessage work ) : void

Not supported

Length ( ) : int

Approximate snapshot length.

Always returns zero in this instance.

LocalQueuePollingNode ( string dispatchPath, string incomingPath, IMessageSerialiser serialiser, ISleepWrapper sleeper ) : System

Create a local polling node.

You should not use this yourself. Use:

MessagingSystem.Configure.WithLocalQueue(...);

and receive messages as normal.

Stop ( ) : void

Stop receiving messages

Deregisters all message types

TryDequeue ( ) : IWorkQueueItem>

Try and get an item from this queue. Success is encoded in the WorkQueueItem{T} result 'HasItem'

비공개 메소드들

메소드 설명
Ignore ( ) : void

Ignore exceptions of this type

TryPumpingMessages ( IPersistentQueue dispatchQueue ) : void

Try to move messages from the incoming queue to the dispatch queue

메소드 상세

AddMessageType() 공개 메소드

A message type for which to poll
public AddMessageType ( Type type ) : void
type System.Type
리턴 void

BlockUntilReady() 공개 메소드

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

Always immediately returns true in this instance.

public BlockUntilReady ( ) : bool
리턴 bool

Enqueue() 공개 메소드

Not supported
public Enqueue ( IPendingMessage work ) : void
work IPendingMessage
리턴 void

Length() 공개 메소드

Approximate snapshot length.

Always returns zero in this instance.

public Length ( ) : int
리턴 int

LocalQueuePollingNode() 공개 메소드

Create a local polling node.

You should not use this yourself. Use:

MessagingSystem.Configure.WithLocalQueue(...);

and receive messages as normal.
public LocalQueuePollingNode ( string dispatchPath, string incomingPath, IMessageSerialiser serialiser, ISleepWrapper sleeper ) : System
dispatchPath string
incomingPath string
serialiser IMessageSerialiser
sleeper ISleepWrapper
리턴 System

Stop() 공개 메소드

Stop receiving messages

Deregisters all message types

public Stop ( ) : void
리턴 void

TryDequeue() 공개 메소드

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