com.jrockit.memleak.value
Class TimeCache<T>

java.lang.Object
  extended by com.jrockit.memleak.value.TimeCache<T>
Type Parameters:
T -

public abstract class TimeCache<T>
extends java.lang.Object

Experimental to handle caching of data that may change over time.

Author:
mpersson

Constructor Summary
TimeCache()
           
 
Method Summary
protected abstract  IResult<T> createResult()
           
 T get(Policy policy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeCache

public TimeCache()
Method Detail

get

public T get(Policy policy)
      throws GarbageCollectedException,
             SpiException
Parameters:
policy -
Returns:
the cached value or null, according to policy
Throws:
GarbageCollectedException
SpiException

createResult

protected abstract IResult<T> createResult()
Returns:
a newly created result, likely pending.


Copyright © 1999, 2011, Oracle and/or its affiliates. All rights reserved.