C# Class HaywireMQ.Server.Store.InMemoryMessageStore

Implementation of IMessageStore that stores messages in memory.
Inheritance: IMessageStore
Afficher le fichier Open project: kellabyte/HaywireMQ Class Usage Examples

Méthodes publiques

Méthode Description
CreateQueue ( string queueName ) : bool

Creates a message queue with the specified name.

Dispose ( ) : void

Disposes the InMemoryMessageStore.

GetMessage ( string queueName, ulong sequence ) : Message

Gets the message from the specified message queue with the specified sequence number.

GetMessageCount ( string queueName ) : ulong

Gets the count of messages in the specified message queue.

GetNextSequence ( string queueName ) : ulong

Get the next sequence from the specified message queue.

GetQueues ( ) : IList

Gets the available message queues.

InMemoryMessageStore ( ) : System

Iniitalizes a new instance of InMemoryMessageStore class.

QueueExists ( string queueName ) : bool

Checks whether a message queue with the specified name exists.

StoreMessage ( string queueName, Message message ) : void

Stores the specified message in the specified message queue.

Method Details

CreateQueue() public méthode

Creates a message queue with the specified name.
public CreateQueue ( string queueName ) : bool
queueName string Name of the message queue to create.
Résultat bool

Dispose() public méthode

Disposes the InMemoryMessageStore.
public Dispose ( ) : void
Résultat void

GetMessage() public méthode

Gets the message from the specified message queue with the specified sequence number.
public GetMessage ( string queueName, ulong sequence ) : Message
queueName string Name of the message queue.
sequence ulong Sequence of the message.
Résultat Message

GetMessageCount() public méthode

Gets the count of messages in the specified message queue.
public GetMessageCount ( string queueName ) : ulong
queueName string Name of the message queue to get the message count from.
Résultat ulong

GetNextSequence() public méthode

Get the next sequence from the specified message queue.
public GetNextSequence ( string queueName ) : ulong
queueName string Name of the message queue to get the next sequence from.
Résultat ulong

GetQueues() public méthode

Gets the available message queues.
public GetQueues ( ) : IList
Résultat IList

InMemoryMessageStore() public méthode

Iniitalizes a new instance of InMemoryMessageStore class.
public InMemoryMessageStore ( ) : System
Résultat System

QueueExists() public méthode

Checks whether a message queue with the specified name exists.
public QueueExists ( string queueName ) : bool
queueName string Name of the message queue to check.
Résultat bool

StoreMessage() public méthode

Stores the specified message in the specified message queue.
public StoreMessage ( string queueName, Message message ) : void
queueName string Name of the message queue.
message Message Message to store.
Résultat void