<?xml version="1.0" encoding="utf-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	   xmlns:gfe="http://www.springframework.org/schema/gemfire"
	   xmlns:util="http://www.springframework.org/schema/util"
	   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	   xsi:schemaLocation="
	   	http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
        http://www.springframework.org/schema/gemfire http://www.springframework.org/schema/gemfire/spring-gemfire.xsd
        http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
">

	<util:properties id="gemfireProperties">
		<prop key="name">CachePartitionRegionWithConcurrentParallelAsyncEventQueueAndGatewaySenderIntegrationTest</prop>
		<prop key="mcast-port">0</prop>
		<prop key="log-level">warning</prop>
	</util:properties>

	<gfe:cache properties-ref="gemfireProperties"/>

	<gfe:async-event-queue id="ExampleQueue" dispatcher-threads="4" parallel="true">
		<gfe:async-event-listener>
			<bean class="org.springframework.data.gemfire.wan.CachePartitionRegionWithConcurrentParallelAsyncEventQueueAndGatewaySenderIntegrationTest$TestAsyncEventListener"/>
		</gfe:async-event-listener>
	</gfe:async-event-queue>

	<gfe:gateway-sender id="ExampleGateway" remote-distributed-system-id="123" parallel="true" dispatcher-threads="8"
						manual-start="true"/>

	<gfe:partitioned-region id="ExampleRegion" persistent="false">
		<gfe:gateway-sender-ref bean="ExampleGateway"/>
		<gfe:async-event-queue-ref bean="ExampleQueue"/>
	</gfe:partitioned-region>

</beans>
