<?xml version="1.0" encoding="utf-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	   xmlns:gfe="http://www.springframework.org/schema/gemfire"
	   xmlns:p="http://www.springframework.org/schema/p"
	   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">AsyncEventQueueWithListenerTest</prop>
		<prop key="log-level">config</prop>
		<prop key="mcast-port">0</prop>
	</util:properties>

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

	<gfe:async-event-queue id="Q1" name="QueueOne" persistent="false" parallel="false" maximum-queue-memory="50"
						   dispatcher-threads="4">
		<gfe:async-event-listener ref="asyncEventListener"/>
	</gfe:async-event-queue>

	<bean id="asyncEventListener" class="org.springframework.data.gemfire.wan.AsyncEventQueueWithListenerIntegrationTest$TestAsyncEventListener"
		  init-method="init">
		<property name="queue" ref="Q1"/>
	</bean>

	<gfe:async-event-queue id="Q2" name="QueueTwo" persistent="false" parallel="true" maximum-queue-memory="150">
		<gfe:async-event-listener>
			<bean class="org.springframework.data.gemfire.wan.AsyncEventQueueWithListenerIntegrationTest$TestAsyncEventListener"
				  p:name="ListenerTwo"/>
		</gfe:async-event-listener>
	</gfe:async-event-queue>

	<bean id="anotherAsyncEventListener" class="org.springframework.data.gemfire.wan.AsyncEventQueueWithListenerIntegrationTest$TestAsyncEventListener"
		  init-method="init">
		<property name="queue" ref="Q3"/>
	</bean>

	<gfe:async-event-queue id="Q3" name="QueueThree" persistent="false" parallel="false" maximum-queue-memory="25"
						   dispatcher-threads="2">
		<gfe:async-event-listener ref="anotherAsyncEventListener"/>
	</gfe:async-event-queue>

</beans>
