Package com.google.jenkins.plugins.util
Class RequestCallable<T>
- java.lang.Object
-
- com.google.jenkins.plugins.util.RequestCallable<T>
-
-
Constructor Summary
Constructors Constructor Description RequestCallable()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract T
call()
boolean
canRetry()
static <R> RequestCallable<R>
from(com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest<R> request)
-
-
-
Method Detail
-
call
public abstract T call() throws IOException, ExecutorException
- Specified by:
call
in interfaceCallable<T>
- Throws:
IOException
ExecutorException
-
canRetry
public boolean canRetry()
- Returns:
- whether this request can be retry.
-
from
public static <R> RequestCallable<R> from(com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest<R> request)
- Returns:
- a
RequestCallable
that executes a request.
-
-