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

Merge EvictionListener.preEvict() and postEvict() into one listener method.

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 4.2.0.ALPHA4
    • 4.1.0.Final
    • Core
    • None

      EvictionListener.preEvict() is of dubious value (and actually the legacy of JBoss Cache) because a user cannot affect the behavior of eviction at all and a user can get notified on eviction via the postEvict() listener method. I'd like to propose to change EvictionListener like this:

      public interface EvictionListener<K, V>

      { void onEntryEviction(K key, V value); }

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

              Created:
              Updated:
              Resolved: