C# Class DotNetWorkQueue.Transport.Redis.Basic.CommandHandler.BatchMessageShared

Shared logic for sending a batch of messages
Exibir arquivo Open project: blehnen/DotNetWorkQueue Class Usage Examples

Public Methods

Method Description
CreateMessagesToSend ( RedisHeaders redisHeaders, IAdditionalMessageData>.IReadOnlyCollection messages, byte meta, IUnixTimeFactory unixTimeFactory, IGetMessageIdFactory messageIdFactory, ICompositeSerialization serializer ) : List

Creates the messages to send.

ProcessSentMessages ( List result, int messageCount, ISentMessageFactory sentMessageFactory ) : List

Processes the sent messages.

Method Details

CreateMessagesToSend() public static method

Creates the messages to send.
public static CreateMessagesToSend ( RedisHeaders redisHeaders, IAdditionalMessageData>.IReadOnlyCollection messages, byte meta, IUnixTimeFactory unixTimeFactory, IGetMessageIdFactory messageIdFactory, ICompositeSerialization serializer ) : List
redisHeaders RedisHeaders The redis headers.
messages IAdditionalMessageData>.IReadOnlyCollection The messages.
meta byte The meta data, already serialized.
unixTimeFactory IUnixTimeFactory The unix time factory.
messageIdFactory IGetMessageIdFactory The message identifier factory.
serializer ICompositeSerialization The composite serializer.
return List

ProcessSentMessages() public static method

Processes the sent messages.
$Failed to enqueue record(s). The LUA enqueue script returned the wrong count of items {result.Count}, expected {messageCount * 2}
public static ProcessSentMessages ( List result, int messageCount, ISentMessageFactory sentMessageFactory ) : List
result List The result.
messageCount int The message count.
sentMessageFactory ISentMessageFactory The sent message factory.
return List