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

Both <gfe:custom-entry-ttl> and <gfe:custom-entry-tti> SDG XML namespace elements allow for more than one 'CustomExpiry' bean to be set in the Region Expiration Attributes although GemFire only allows one!

    XMLWordPrintable

Details

    Description

      The '<gfe:custom-entry-ttl>' and '<gfe:custom-entry-tti>' SDG XML namespace elements allow for more than one inner, nested bean definition, for example...

      <gfe:replicated-region id="Example" statistics="true">
        <gfe:custom-entry-tti>
          <bean class=com.example.MyClass"/>
          <bean class=com.example.AnotherClass"/>
          <bean class=com.example.YetAnotherClass"/>
          ...
        </gfe:custom-entry-tti>
      </gfe:replicated-region>
      

      However, the GemFire com.gemstone.gemfire.cache.RegionFactory interface only allows one CustomExpiry to be specified for both Region Entry TTL (Time-To-Live) as well as Entry TTI (Idle-Timeout).

        RegionFactory<K,V> setCustomEntryTimeToLive(CustomExpiry<K,V> custom);
      
        RegionFactory<K,V> setCustomEntryIdleTimeout(CustomExpiry<K,V> custom);
      

      As well, the com.gemstone.gemfire.cache.RegionAttributes interface only return a single CustomExpiry from...

        CustomExpiry<K,V> getCustomEntryTimeToLive()
      
        CustomExpiry<K,V> getCustomEntryIdleTimeout()
      

      Therefore, SDG's XML namespace and schema (XSD) need to be changed.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: