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

Benoit Perroud commented on DIRECTMEMORY-70:
--------------------------------------------

Yes you got it, {{Pointer}} would be a member of {{CacheEntry}}.

Then the Cache layer will deal with CacheEntries, and the OffHeapMemory layer 
will deal with Pointers only.
And the Cache layer will be responsible for eviction, not the OffHeapMemory 
layer.
                
> Move Pointer.class and Pointer."statistics" into an intermediate class 
> CacheEntry
> ---------------------------------------------------------------------------------
>
>                 Key: DIRECTMEMORY-70
>                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-70
>             Project: Apache DirectMemory
>          Issue Type: Improvement
>            Reporter: Benoit Perroud
>
> In order to achieve better separation of responsabilities, attributes like 
> Pointer.class, Pointer.hits, Pointer.lastHit, etc. should be moved into an 
> intermediate class, for instance CacheEntry.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to