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

	<int:channel id="in">
		<int:queue />
	</int:channel>

	<int:barrier id="barrier1" input-channel="in" output-channel="out" correlation-strategy-expression="'foo'"
				requires-reply="true" discard-channel="discards"
				timeout="10000"
				trigger-timeout="5000">
		<int:poller fixed-delay="100" />
	</int:barrier>

	<int:channel id="out">
		<int:queue />
	</int:channel>

	<int:channel id="discards">
		<int:queue />
	</int:channel>

	<int:channel id="release" />

	<int:outbound-channel-adapter channel="release" ref="barrier1.handler" method="trigger" />

	<int:barrier id="barrier2" input-channel="nullChannel" timeout="10000" auto-startup="false">
		<int:poller fixed-delay="1000000" />
	</int:barrier>

	<int:barrier id="barrier3" input-channel="release" auto-startup="false" timeout="123"
		output-processor="mgp" correlation-strategy="cs" requires-reply="true" />

	<bean id="mgp" class="org.springframework.integration.config.xml.BarrierParserTests$TestMGP" />

	<bean id="cs" class="org.springframework.integration.config.xml.BarrierParserTests$TestCS" />

</beans>
