Class Cache<K,V>
- java.lang.Object
-
- com.cloudbees.jenkins.plugins.bitbucket.client.Cache<K,V>
-
public class Cache<K,V> extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Cache.Stat
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
evictAll()
V
get(K key, Callable<V> callable)
void
setExpireDuration(int duration, TimeUnit unit)
int
size()
Cache.Stat
stats()
-
-
-
Method Detail
-
get
public V get(K key, Callable<V> callable) throws ExecutionException
- Throws:
ExecutionException
-
evictAll
public void evictAll()
-
size
public int size()
-
setExpireDuration
public void setExpireDuration(int duration, TimeUnit unit)
-
stats
public Cache.Stat stats()
-
-