org.jopendocument.util.cache
Class Memoizer<A,V,X extends Exception>

java.lang.Object
  extended by org.jopendocument.util.cache.Memoizer<A,V,X>
All Implemented Interfaces:
ITransformerExn<A,V,X>

@ThreadSafe
public class Memoizer<A,V,X extends Exception>
extends Object
implements ITransformerExn<A,V,X>


Constructor Summary
Memoizer(ITransformerExn<A,V,X> c)
           
Memoizer(ITransformerExn<A,V,X> c, ConcurrentMap<A,Future<V>> cache)
           
 
Method Summary
 Set<A> getCachedItems()
           
 V transformChecked(A arg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Memoizer

public Memoizer(ITransformerExn<A,V,X> c)

Memoizer

public Memoizer(ITransformerExn<A,V,X> c,
                ConcurrentMap<A,Future<V>> cache)
Method Detail

getCachedItems

public final Set<A> getCachedItems()

transformChecked

public final V transformChecked(A arg)
                         throws X extends Exception
Specified by:
transformChecked in interface ITransformerExn<A,V,X extends Exception>
Throws:
X extends Exception


Copyright © 2010 jOpenDocument All Rights Reserved.