+ add persistence and overflow support for client regions
This commit is contained in:
Costin Leau
2010-10-31 17:34:17 +02:00
parent ef9dbdf2f9
commit 1ba1cfa32c
5 changed files with 139 additions and 27 deletions

View File

@@ -31,5 +31,23 @@
<gfe:pool id="gemfire-pool" subscription-enabled="false">
<gfe:locator host="localhost" port="40403"/>
</gfe:pool>
<gfe:client-region id="persistent" pool-name="gemfire-pool" persistent="true">
<gfe:disk-store queue-size="50" auto-compact="true" max-oplog-size="10" synchronous-write="false" time-interval="9999">
<gfe:disk-dir location="./" max-size="1"/>
</gfe:disk-store>
</gfe:client-region>
<gfe:client-region id="overflow" pool-name="gemfire-pool">
<gfe:disk-store queue-size="50" auto-compact="true" max-oplog-size="10" synchronous-write="false" time-interval="9999">
<gfe:disk-dir location="./" max-size="1"/>
</gfe:disk-store>
<gfe:eviction type="MEMORY_SIZE" threshold="10" action="LOCAL_DESTROY">
<gfe:object-sizer>
<bean class="org.springframework.data.gemfire.SimpleObjectSizer"/>
</gfe:object-sizer>
</gfe:eviction>
</gfe:client-region>
</beans>