Skip to content

what is difference between setConsumeTimeout and setTTL #122

Answered by weyoss
ljx0517 asked this question in Q&A
Discussion options

You must be logged in to vote

@ljx0517 Thank you for opening this issue and for using RedisSMQ.

message.setConsumeTimeout() - This method is useful for setting up a given timeout when a message is being consumed by a consumer. If the timeout exceeds the message processing is cancelled and the message, being processed, is automatically unacknowledged.

message.setTTL() - Allows a message to expire if it has not been delivered to a consumer within a given amount of time.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by weyoss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #103 on April 15, 2025 09:02.