C# Class DotNetWorkQueue.Transport.PostgreSQL.Basic.PostgreSqlMessageQueueClearExpiredMessages

Deletes expired messages from the queue
Inheritance: IClearExpiredMessages
ファイルを表示 Open project: blehnen/DotNetWorkQueue

Public Methods

Method Description
ClearMessages ( CancellationToken cancelToken ) : long

Clears the expired messages from the queue

PostgreSqlMessageQueueClearExpiredMessages ( IConnectionInformation connectionInfo, IQueryHandler findExpiredMessagesQueryHandler, long>.ICommandHandlerWithOutput deleteMessageCommandHandler ) : System.Collections.Generic

Initializes a new instance of the PostgreSqlMessageQueueClearExpiredMessages class.

Method Details

ClearMessages() public method

Clears the expired messages from the queue
public ClearMessages ( CancellationToken cancelToken ) : long
cancelToken System.Threading.CancellationToken The cancel token. If fired, stop processing
return long

PostgreSqlMessageQueueClearExpiredMessages() public method

Initializes a new instance of the PostgreSqlMessageQueueClearExpiredMessages class.
public PostgreSqlMessageQueueClearExpiredMessages ( IConnectionInformation connectionInfo, IQueryHandler findExpiredMessagesQueryHandler, long>.ICommandHandlerWithOutput deleteMessageCommandHandler ) : System.Collections.Generic
connectionInfo IConnectionInformation The connection information.
findExpiredMessagesQueryHandler IQueryHandler The find expired messages query handler.
deleteMessageCommandHandler long>.ICommandHandlerWithOutput The delete message command handler.
return System.Collections.Generic