[infinispan-dev] [Discussion] TimeService implementation
Mircea Markus
mmarkus at redhat.com
Fri May 3 11:54:24 EDT 2013
On 3 May 2013, at 16:49, Manik Surtani wrote:
> On 2 May 2013, at 19:01, Pedro Ruivo <pedro at infinispan.org> wrote:
>
>>
>> preciseTime() {return (cached = System.nanoTime());}
>> impreciseTime() {return cached;}
>
> How would you invalidate the cached time?
update the cache value async every X millis would be one way to do it.
As a note, we shouldn't focus on caching the time for now but just use the service in order to be able to unit test time related issues.
Cheers,
--
Mircea Markus
Infinispan lead (www.infinispan.org)
More information about the infinispan-dev
mailing list