Uploaded image for project: 'Spring Data GemFire'
  1. Spring Data GemFire
  2. SGF-337

SDG's XML Schema (XSD) does not allow the developer to specify 'timeout' and 'action' values for CustomExpiry (<gfe:custom-entry-[ttl|tti]>) on Region attributes.

    XMLWordPrintable

    Details

      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.

        Attachments

          Activity

            People

            Assignee:
            jblum John Blum
            Reporter:
            jblum John Blum
            Last updater:
            Trevor Marshall
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0.5d
                0.5d
                Remaining:
                Remaining Estimate - 0.5d
                0.5d
                Logged:
                Time Spent - Not Specified
                Not Specified