<?xml version="1.0" encoding="utf-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	   xmlns:gfe="http://www.springframework.org/schema/geode"
	   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/geode http://www.springframework.org/schema/geode/spring-geode.xsd
        http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
">

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

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

	<gfe:replicated-region id="Customers" persistent="false">
		<gfe:replicated-region name="Accounts"
							   concurrency-level="20"
							   destroy="true"
							   disk-synchronous="true"
							   ignore-jta="true"
							   index-update-type="asynchronous"
							   initial-capacity="1000"
							   key-constraint="java.lang.Long"
							   persistent="true"
							   scope="distributed-ack"
							   statistics="true"
							   value-constraint="java.lang.String">
			<!-- NOTE Async Event Queue and Gateway Sender tests are covered in the subregionsubelement-ns.xml and associated test class -->
			<gfe:cache-listener>
				<bean class="org.springframework.data.gemfire.SimpleCacheListener"/>
			</gfe:cache-listener>
			<gfe:cache-loader>
				<bean class="org.springframework.data.gemfire.SimpleCacheLoader"/>
			</gfe:cache-loader>
			<gfe:cache-writer>
				<bean class="org.springframework.data.gemfire.SimpleCacheWriter"/>
			</gfe:cache-writer>
			<gfe:membership-attributes loss-action="limited-access" required-roles="TEST" resumption-action="reinitialize"/>
			<gfe:subscription type="CACHE_CONTENT"/>
			<gfe:eviction action="OVERFLOW_TO_DISK" threshold="10000"/>
		</gfe:replicated-region>
	</gfe:replicated-region>

</beans>
