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 Tcall()booleancanRetry()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:
callin interfaceCallable<T>- Throws:
IOExceptionExecutorException
-
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
RequestCallablethat executes a request.
-