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

BoundedConcurrentHashMap.EvictionListener should have a bulk entry listener method.

    XMLWordPrintable

Details

    • Task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 4.1.0.Final
    • 4.2.0.ALPHA5
    • Core
    • None

    Description

      BoundedConcurrentHashMap.EvictionListener should have a bulk entry listener so that CacheStores can optimize passivation behavior. Current BoundedConcurrentHashMap notifies EvictionListener for every evicted entry. However, as you see from BoundedConcurrentHashMap.Segment.attemptEviction(..), eviction often happens in bulk. If these evicted entries are supposed to be passivated, it is often beneficial to begin a transaction because it often takes much less time to call commit() less often. If N entries are evicted:

      without bulk eviction:

          store.store(e1); – each store implied a commit()

          store.store(..);

          store.store(eN);

      with bulk eviction:

          store.begin(mods(e1, ..., eN), tx, true);

      Attachments

        Issue Links

          Activity

            People

              trustin_jira Trustin Lee (Inactive)
              trustin_jira Trustin Lee (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: