C# 클래스 HaywireMQ.Server.Store.InMemoryMessageStore

Implementation of IMessageStore that stores messages in memory.
상속: IMessageStore
파일 보기 프로젝트 열기: kellabyte/HaywireMQ 1 사용 예제들

공개 메소드들

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

메소드 상세

CreateQueue() 공개 메소드

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

Dispose() 공개 메소드

Disposes the InMemoryMessageStore.
public Dispose ( ) : void
리턴 void

GetMessage() 공개 메소드

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.
리턴 Message

GetMessageCount() 공개 메소드

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.
리턴 ulong

GetNextSequence() 공개 메소드

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.
리턴 ulong

GetQueues() 공개 메소드

Gets the available message queues.
public GetQueues ( ) : IList
리턴 IList

InMemoryMessageStore() 공개 메소드

Iniitalizes a new instance of InMemoryMessageStore class.
public InMemoryMessageStore ( ) : System
리턴 System

QueueExists() 공개 메소드

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

StoreMessage() 공개 메소드

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.
리턴 void