You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2016/02/08 16:14:39 UTC

[jira] [Comment Edited] (OAK-3095) Add eviction listener to LIRS cache

    [ https://issues.apache.org/jira/browse/OAK-3095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15137039#comment-15137039 ] 

Marcel Reutegger edited comment on OAK-3095 at 2/8/16 3:14 PM:
---------------------------------------------------------------

FWIW, the reason why the CacheLIRS introduced its own listener is the package private {{RemovalNotification}} constructor. Guava 19.0 introduced a [static factory method|http://google.github.io/guava/releases/19.0/api/docs/com/google/common/cache/RemovalNotification.html#create(K, V, com.google.common.cache.RemovalCause)] we could use when we update to that version.


was (Author: mreutegg):
FWIW, the reason why the CacheLIRS introduced its own listener is the package private {{RemovalNotification}} constructor. It looks like Guava 19.0 will have a static factory method we could use once we update to that version.

> Add eviction listener to LIRS cache
> -----------------------------------
>
>                 Key: OAK-3095
>                 URL: https://issues.apache.org/jira/browse/OAK-3095
>             Project: Jackrabbit Oak
>          Issue Type: New Feature
>          Components: core
>            Reporter: Michael Dürig
>            Assignee: Michael Dürig
>              Labels: candidate_oak_1_0, candidate_oak_1_2
>             Fix For: 1.3.3
>
>         Attachments: OAK-3095-1.2.patch, OAK-3095-2.patch, OAK-3095.patch
>
>
> For OAK-3055 I need to be able to track items that are evicted from {{CacheLIRS}}. I thus suggest to implement a listener for evicted items. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)