How do I make RedisMqServer wait a second before retrying a message?

227 Views Asked by At

It appears that RedisMqServer's requestTimeOut constructor argument does not have an impact on the time between message retries. Is there some other way to add a delay between message retries?

Specifically we are looking to add a property to a Message which will indicate how long a MessageQueueHandler should ignore that message if a retry attempt is outstanding.

1

There are 1 best solutions below

2
Mike On

Have you tried setting the KeepAliveRetryAfterMs proeprty on your RedisMqServer object?

myHost = new RedisMqServer(myManager) {
    KeepAliveRetryAfterMs = 10000 // 10 Seconds
};