Skip to content

GenericMessagingTemplate - add overloaded doReceive() for dynamic receiveTimeout [SPR-15591] #20150

@spring-projects-issues

Description

@spring-projects-issues

Gary Russell opened SPR-15591 and commented

Currently, doReceive() uses the provisioned receiveTimeout field - we have a requirement to provide a runtime timeout in some sendAndReceive use cases.

I would like to get this into 5.0 (RC2 or 3) if possible (I will submit a PR if there is agreement).

There are currently many convertSendAndReceive overloaded public methods. I am not sure it's necessary to double all of those to include the new parameter; I think it would be sufficient for subclasses to provide any specialized methods as needed (that would solve our use case, since we need to calculate the timeout using a SpEL expression anyway and it's likely we will need a custom evaluation context for each request anyway).

However, I can add a full set of overloads if you would prefer that.

Juergen Hoeller rstoyanchev please let me know your thoughts; thanks..


Affects: 5.0 RC1

Issue Links:

  • INT-4033 Consider Adding Expressions for Gateway Properties ("is depended on by")

Referenced from: pull request #1435, and commits e06c4d5

Metadata

Metadata

Assignees

Labels

in: messagingIssues in messaging modules (jms, messaging)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions