<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns:int="http://www.springframework.org/schema/integration"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:beans="http://www.springframework.org/schema/beans"
	xmlns:context="http://www.springframework.org/schema/context"
	xmlns:int-stream="http://www.springframework.org/schema/integration/stream"
	xsi:schemaLocation="http://www.springframework.org/schema/beans
		https://www.springframework.org/schema/beans/spring-beans.xsd
		http://www.springframework.org/schema/context
		https://www.springframework.org/schema/context/spring-context.xsd
		http://www.springframework.org/schema/integration
		https://www.springframework.org/schema/integration/spring-integration.xsd
		http://www.springframework.org/schema/integration/stream
		https://www.springframework.org/schema/integration/stream/spring-integration-stream.xsd">

	<int:annotation-config/>

	<context:component-scan base-package="org.springframework.integration.samples.cafe.annotation"/>

	<int:gateway id="cafe" service-interface="org.springframework.integration.samples.cafe.Cafe"/>

	<int:channel id="orders"/>
	<int:channel id="drinks"/>
	<int:channel id="coldDrinks"><int:queue capacity="10"/></int:channel>
	<int:channel id="hotDrinks"><int:queue capacity="10"/></int:channel>
	<int:channel id="coldDrinkBarista"/>
	<int:channel id="hotDrinkBarista"/>
	<int:channel id="preparedDrinks"/>

	<int:bridge input-channel="coldDrinks" output-channel="coldDrinkBarista">
		<int:poller fixed-delay="1000"/>
	</int:bridge>

	<int:bridge input-channel="hotDrinks" output-channel="hotDrinkBarista">
		<int:poller fixed-delay="1000"/>
	</int:bridge>

	<int-stream:stdout-channel-adapter id="deliveries"/>

</beans:beans>
