Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Blocker
-
Resolution: Works as Designed
-
Affects Version/s: 1.4.4 (Dijkstra SR4), 1.5 GA (Evans), 1.6 M1 (Fowler)
-
Fix Version/s: 1.4.5 (Dijkstra SR5), 1.5.1 (Evans SR1), 1.6 M1 (Fowler)
-
Environment:Spring + GemFire
Description
Using Spring Data GemFire's XML schema and namespace (XSD), there is currently no way for a developer to specify custom expiration settings (i.e. com.gemstone.gemfire.cache.CustomExpiry) in the Region attributes for Region Entry Expiration, either for Time-To-Live (TTL) or Idle Timeout (TTI).
So, for example, the following snippet of GemFire cache.xml cannot be full represented in SDG's XML namespace...
// cache.xml
<region-attributes statistics-enabled="true"> <entry-idle-time> <expiration-attributes timeout="60" action="local-invalidate"> <custom-expiry> <class-name>com.megaconglomerate.mypackage.MyClass</class-name> </custom-expiry> </expiration-attributes> </entry-idle-time> </region-attributes>
The corresponding (but incomplete) SDG configuration meta-data is...
// {applicationContext.xml}}
<gfe:partitioned-region id="Example" statistics="true"> <gfe:custom-entry-tti> <bean class=com.megaconglomerate.mypackage.MyClass"/> </gfe:custom-entry-tti> </gfe:partitioned-region>
As you can see, there is no way to specify the 'timeout' and corresponding 'action' attributes in SDG XML.