Package org.infinispan.persistence.spi
Interface AdvancedCacheExpirationWriter.ExpirationPurgeListener<K,V>
-
- All Superinterfaces:
AdvancedCacheWriter.PurgeListener<K>
- Enclosing interface:
- AdvancedCacheExpirationWriter<K,V>
public static interface AdvancedCacheExpirationWriter.ExpirationPurgeListener<K,V> extends AdvancedCacheWriter.PurgeListener<K>
Callback to be notified when an entry is removed by theAdvancedCacheExpirationWriter.purge(Executor, ExpirationPurgeListener)
method. Note this interface adds a new method to the purge listener. It is possible that a cache store may want to have a key only expiration and a key/metadata for various performance reasons.
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default void
marshalledEntryPurged(org.infinispan.marshall.core.MarshalledEntry<K,V> entry)
Deprecated.since 10.0, use {marshalledEntryPurged(MarshallableEntry)
} instead.default void
marshalledEntryPurged(MarshallableEntry<K,V> entry)
Optional.-
Methods inherited from interface org.infinispan.persistence.spi.AdvancedCacheWriter.PurgeListener
entryPurged
-
-
-
-
Method Detail
-
marshalledEntryPurged
default void marshalledEntryPurged(MarshallableEntry<K,V> entry)
Optional. If possible,AdvancedCacheExpirationWriter
implementors should invoke this method for every entry that is purged from the store. One of the side effects of not implementing this method is that listeners do not receiveCacheEntryExpired
for the entries that are removed from the persistent store directly.
-
marshalledEntryPurged
@Deprecated default void marshalledEntryPurged(org.infinispan.marshall.core.MarshalledEntry<K,V> entry)
Deprecated.since 10.0, use {marshalledEntryPurged(MarshallableEntry)
} instead.
-
-