directmemory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raffaele P. Guidi (Commented) (JIRA)" <>
Subject [jira] [Commented] (DIRECTMEMORY-41) Unified usage of Pointer.expires and Pointer.expiresIn
Date Wed, 28 Dec 2011 11:09:30 GMT


Raffaele P. Guidi commented on DIRECTMEMORY-41:

There's also another semantic difference between the two - expiresIn could be used for "sliding"
expiration - that is: "expires in 10 minutes since last read" that could be useful in some
> Unified usage of Pointer.expires and Pointer.expiresIn
> ------------------------------------------------------
>                 Key: DIRECTMEMORY-41
>                 URL:
>             Project: Apache DirectMemory
>          Issue Type: Improvement
>            Reporter: Benoit Perroud
>            Priority: Minor
> Pointer.expires and Pointer.expiresIn variables have the same goal. It could be trivial
to unify them and then keep on of the version : either the absolute expiration is kept and
expiresIn is stored as currentTimeMillis + expiresIn, or relative expiration is kept and expires
is stored as expires - currentTimeMillis.
> retrive function should also be aware of the expiration and have appropriate behavior
when a pointer's value has expired (throw an exception or return null ?)

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message