voldemort.utils
Class CachedCallable<T>

java.lang.Object
  extended by voldemort.utils.CachedCallable<T>
All Implemented Interfaces:
java.util.concurrent.Callable<T>

public class CachedCallable<T>
extends java.lang.Object
implements java.util.concurrent.Callable<T>


Constructor Summary
CachedCallable(java.util.concurrent.Callable<T> inner, long ttlMs)
           
CachedCallable(java.util.concurrent.Callable<T> inner, long ttlMs, Time time)
           
 
Method Summary
 T call()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedCallable

public CachedCallable(java.util.concurrent.Callable<T> inner,
                      long ttlMs)

CachedCallable

public CachedCallable(java.util.concurrent.Callable<T> inner,
                      long ttlMs,
                      Time time)
Method Detail

call

public T call()
       throws java.lang.Exception
Specified by:
call in interface java.util.concurrent.Callable<T>
Throws:
java.lang.Exception


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu