Repository navigation
Expose Redelivery Count By Message Properties(issue-3030) - #3033
Conversation
|
Fix issue #2375 |
|
@codelipenghui The properties were meant to be completely application defined. That also might confuse some application that has its own set of keys to suddenly see a new key there. In general, I'd prefer to have a If we foresee to need add multiple of these method, a context object would also be an option, though it would be probably far-fetched at this point. |
|
@merlimat I'm already address your suggestion, thanks a lot. |
|
|
||
| private String topic; // only set for incoming messages | ||
| transient private Map<String, String> properties; | ||
| private int redeliveryCount; |
There was a problem hiding this comment.
Yes, redeliveryCount is immutable.
|
run integration tests |
|
Hi @merlimat, |
Motivation
Use redelivery count as a solution for delayed message delivery feature.
For example, set ackTimeout 30 seconds in consumer, if consumer want to apply this message 60 seconds later, user can do ack when message redelivery count > 1.
Implement
Set redelivery count to message properties(a system property) when message received in consumer.
Fix issue #3030