<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	   xmlns:gfe="http://www.springframework.org/schema/gemfire"
	   xmlns:context="http://www.springframework.org/schema/context"
	   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/context http://www.springframework.org/schema/context/spring-context.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="cacheServerConfiguration">
		<prop key="server.port">40406</prop>
		<prop key="subscription.eviction.policy">ENTRY</prop>
	</util:properties>

	<context:property-placeholder properties-ref="cacheServerConfiguration"/>

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

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

	<bean id="bean1" class="org.springframework.data.gemfire.Init"/>

	<!-- Advanced example depicting various cache server configuration options -->
	<gfe:cache-server id="advanced-config" auto-startup="true" bind-address="localhost" port="${server.port}"
					  host-name-for-clients="localhost" groups="test-server" load-poll-interval="2000"
					  max-connections="22" max-threads="16" max-message-count="1000" max-time-between-pings="30000">
		<gfe:subscription-config eviction-type="${subscription.eviction.policy}" capacity="1000"/>
	</gfe:cache-server>

	<bean id="bean2" class="org.springframework.data.gemfire.Init"/>

</beans>
