Package com.google.jenkins.plugins.util
Class RequestCallable<T>
java.lang.Object
com.google.jenkins.plugins.util.RequestCallable<T>
- Type Parameters:
T
- the return type for the request.
- All Implemented Interfaces:
Callable<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract T
call()
boolean
canRetry()
static <R> RequestCallable<R>
from
(com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest<R> request)
-
Constructor Details
-
RequestCallable
public RequestCallable()
-
-
Method Details
-
call
- 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.
-