[infinispan-issues] [JBoss JIRA] (ISPN-8331) CacheEntryExpiredEvent.getValue() is always null when entry expired from cache store
Radoslav Husar (JIRA)
issues at jboss.org
Fri Mar 9 08:36:00 EST 2018
[ https://issues.jboss.org/browse/ISPN-8331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13543988#comment-13543988 ]
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)
More information about the infinispan-issues
mailing list