the default poller bean . it is an analogue of component from spring integration xml configuration . required for endpoints where the inputchannel is a pollablechannel . in this case , it is necessary for the two cafe queues - hot and iced . here we use the pollers factory from the dsl project and use its method-chain fluent api to build the poller metadata . note that pollers can be used directly from an integrationflow definition , if a specific poller rather than the default poller is needed for an endpoint . concode_field_sep AtomicInteger hotDrinkCounter concode_elem_sep CafeAggregator cafeAggregator concode_elem_sep AtomicInteger coldDrinkCounter concode_field_sep Delivery output concode_elem_sep void placeOrder concode_elem_sep Integer correlation concode_elem_sep IntegrationFlow icedFlow concode_elem_sep IntegrationFlow resultFlow concode_elem_sep void main concode_elem_sep IntegrationFlow orders concode_elem_sep IntegrationFlow hotFlow
PollerMetadata function ( ) { return Pollers . fixedDelay ( 1000 ) . get ( ) ; }