I want to be able to throttle requests received from my SubscribableChannel. I do not use a PollableChannel. Will i be able to do an equivalent of this:
<bridge input-channel="pollable" output-channel="subscribable">
<poller max-messages-per-poll="10">
<interval-trigger interval="5" time-unit="SECONDS"/>
</poller>
</bridge>
http://docs.spring.io/spring-integration/docs/2.0.0.M4/spring-integration-reference/html/bridge.html
using annotations?
A little late but here is a solution I found for my use case :
Explanation :
amqp inbound channel adapter is subscribable. A do the switch to a pollable channel using the "queue style" channel and use a bridge to perform a polling from the queue-channel to the outbound-channel.
In my case I should configure a message-store or set the acknowledge-mode of my amqp inbound channel adapter to manual and do the ack my self to avoid losing my messages.
Regards
With a bridge handler...
...or simply...
or