C# Class SevenDigital.Messaging.MessageReceiving.LocalQueue.LocalQueuePollingNode

Message polling node that reads from a locally accessible DiskQueue
Inheritance: ITypedPollingNode
Afficher le fichier Open project: i-e-b/SevenDigital.Messaging

Méthodes publiques

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

Private Methods

Méthode Description
Ignore ( ) : void

Ignore exceptions of this type

TryPumpingMessages ( IPersistentQueue dispatchQueue ) : void

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

Method Details

AddMessageType() public méthode

A message type for which to poll
public AddMessageType ( Type type ) : void
type System.Type
Résultat void

BlockUntilReady() public méthode

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

Always immediately returns true in this instance.

public BlockUntilReady ( ) : bool
Résultat bool

Enqueue() public méthode

Not supported
public Enqueue ( IPendingMessage work ) : void
work IPendingMessage
Résultat void

Length() public méthode

Approximate snapshot length.

Always returns zero in this instance.

public Length ( ) : int
Résultat int

LocalQueuePollingNode() public méthode

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

Stop() public méthode

Stop receiving messages

Deregisters all message types

public Stop ( ) : void
Résultat void

TryDequeue() public méthode

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