TimeSource uses default autoStartup=true

- Since the ChannelBindingAdapter is `SmartLifecycle` bean and it starts before
the message producing time source adapter we can remove explicit `autoStartup=false` for TimeSource sample
This commit is contained in:
Ilayaperumal Gopinathan
2015-08-19 13:16:33 -07:00
parent a335704833
commit 06762afed2

View File

@@ -42,7 +42,7 @@ public class TimeSource {
private TimeSourceOptionsMetadata options;
@Bean
@InboundChannelAdapter(value = Source.OUTPUT, autoStartup = "false", poller = @Poller(fixedDelay = "${fixedDelay}", maxMessagesPerPoll = "1"))
@InboundChannelAdapter(value = Source.OUTPUT, poller = @Poller(fixedDelay = "${fixedDelay}", maxMessagesPerPoll = "1"))
public MessageSource<String> timerMessageSource() {
return () -> new GenericMessage<>(new SimpleDateFormat(this.options.getFormat()).format(new Date()));
}