-
I found the method setConsumeTimeout and setTTL, what is the difference? |
Beta Was this translation helpful? Give feedback.
Answered by
weyoss
Aug 4, 2023
Replies: 1 comment
-
@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. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
weyoss
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@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.