In my Integration Flow I change from standard flow to an error flow in some error condition, stopping the standardStateEntryPoint
and starting the errorStateEntryPoint
via sending the start/stop command messages to the Control Channel
.
The errorStateEntryPoint
is this:
@Bean
public IntegrationFlow errorStateEntryPoint() {
return IntegrationFlows.from(
() -> new GenericMessage<String>(""),
e -> e.poller(p -> p.fixedDelay(ERROR_STATE_POLLING))
.id("errorStateSourcePollingChannelAdapter")
.autoStartup(false))
.channel("httpOutRequest")
.get();
}
It has a Poller
with a fixed delay of 5_000 ms. The recognized lifecycle when started is
send -> wait -> send -> wait etc.
Is it possible to have the inverse lifecycle, starting with the delay?
wait -> send -> wait -> send etc.