I've having a hard time to understand why IntegrationMBeanExporter.stopActiveComponents method doesn't take care of stopping pollers like below.
What is the rational for not stopping below integrationflow from producing new messages after stopActiveComponents is called ?
(of course I can manually shutdown that poller myself but why isn't it handled by the framework ?)
Any way to modify below code so that the poller automatically stops sending new messages after stopActiveComponents method is called ?
IntegrationFlows
.from(
() -> MessageBuilder.<Object>withPayload("").build(),
c -> c.poller(Pollers.fixedDelay(Duration.ofSeconds(10)))
)
.transform(p -> p)
.log(Level.INFO, m-> "done")
.get()
)
Thank you very much in advance for your time and your expertise.
Best Regards