Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-11998

Eviction new and legacy attributes should stay in sync

    Details

      Description

      The old-style eviction attributes (storage-type, eviction-strategy, eviction-type, size) are available programmatically both via memory() and via memory().heapConfiguration(), and changes to either the new attributes or to the legacy attributes should update all of them.

      The builder does not expose heapConfiguration(), but parsing a JSON with a legacy configuration (e.g. {"local-cache":{ "memory":{"object":{"size":5000}}}}) will set those attributes directly.

      Additionally, the XSD does not include values OBJECT and BINARY for the storage attribute, but the parser accepts them, and serializing a configuration will sometimes write them in the XML. In theory we can replace OBJECT with HEAP, but we can't do the same trick with BINARY because we don't know the media type in the builder (it depends on the user marshaller). This may change in the future, but it's better if we preserve the actual values for now.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                dan.berindei Dan Berindei
                Reporter:
                dan.berindei Dan Berindei
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: