[
https://issues.jboss.org/browse/ISPN-8331?page=com.atlassian.jira.plugin....
]
Radoslav Husar commented on ISPN-8331:
--------------------------------------
The API for this is already implemented by [~william.burns] with @Experimental
{{org.infinispan.persistence.spi.AdvancedCacheExpirationWriter.ExpirationPurgeListener#marshalledEntryPurged}}.
The problem of course is that none of the stores currently implement this.
{quote} If we do, we may want to provide a way to optionally pull the value such as a
`Supplier` to get the value.{quote}
Why would this be necessary? The implenters would return implementation of the
org.infinispan.marshall.core.MarshalledEntry which would proxy the getValueBytes() and
getValue() method calls.
CacheEntryExpiredEvent.getValue() is always null when entry expired
from cache store
------------------------------------------------------------------------------------
Key: ISPN-8331
URL:
https://issues.jboss.org/browse/ISPN-8331
Project: Infinispan
Issue Type: Enhancement
Components: Expiration
Affects Versions: 9.1.1.Final
Reporter: Paul Ferraro
AdvancedCacheWriter.PurgeListener callback only sends the key of the expired entry.
Proposal:
AdvancedCacheWriter.PurgeListener.entryPurged(MarshalledEntry entry);
This way, we only incur the cost of unmarshalling value/metadata when requested.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)