Package com.cloudbees.jenkins.support
Class AsyncResultCache<T>
java.lang.Object
com.cloudbees.jenkins.support.AsyncResultCache<T>
- All Implemented Interfaces:
Runnable
- Author:
- Stephen Connolly
-
Constructor Summary
ConstructorDescriptionAsyncResultCache
(Node node, WeakHashMap<Node, T> cache, Future<T> future, String name) -
Method Summary
Modifier and TypeMethodDescriptionstatic <V,
T extends Throwable>
Vget
(Node node, WeakHashMap<Node, V> cache, hudson.remoting.Callable<V, T> operation, String name) static <V,
T extends Throwable>
Vget
(Node node, WeakHashMap<Node, V> cache, hudson.remoting.Callable<V, T> operation, String name, V defaultIfNull) void
run()
-
Constructor Details
-
AsyncResultCache
-
-
Method Details
-
get
public static <V,T extends Throwable> V get(Node node, WeakHashMap<Node, V> cache, hudson.remoting.Callable<V, throws IOExceptionT> operation, String name, V defaultIfNull) - Throws:
IOException
-
get
public static <V,T extends Throwable> V get(Node node, WeakHashMap<Node, V> cache, hudson.remoting.Callable<V, throws IOExceptionT> operation, String name) - Throws:
IOException
-
run
public void run()
-