<?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">TemplatePersistentPartitionRegionNamespaceTest</prop>
		<prop key="log-level">warning</prop>
		<prop key="mcast-port">0</prop>
	</util:properties>

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

	<gfe:disk-store id="ExampleDataStore" auto-compact="true" compaction-threshold="75" queue-size="100" time-interval="15000">
		<gfe:disk-dir location="gemfire/disk-stores/example"/>
	</gfe:disk-store>

	<gfe:partitioned-region-template id="PartitionRegionTemplate" copies="1" persistent="true" total-buckets="163"
									 disk-store-ref="ExampleDataStore">
		<gfe:partition-resolver>
			<bean class="org.springframework.data.gemfire.config.xml.TemplatePersistentPartitionRegionNamespaceTest$TestPartitionResolver"
				  p:name="TestPartitionResolver"/>
		</gfe:partition-resolver>
		<gfe:eviction type="HEAP_PERCENTAGE" action="OVERFLOW_TO_DISK"/>
	</gfe:partitioned-region-template>

	<gfe:partitioned-region id="Example" template="PartitionRegionTemplate"/>

</beans>
