public class ImmutableCallableRequest<OUTPUT,API,ERROR extends Exception> extends ImmutableRequest<OUTPUT,API,ERROR> implements CallableRequest<OUTPUT,ERROR>
| Constructor and Description |
|---|
ImmutableCallableRequest(String name,
FetchyEngine engine,
RequestServiceDetails<API> service,
Integer timeoutMillis,
Call<OUTPUT,API,?> callable,
CallFallback<OUTPUT> fallback) |
| Modifier and Type | Method and Description |
|---|---|
OUTPUT |
execute() |
Callable<OUTPUT> |
getCallable(API api) |
Callable<OUTPUT> |
getCallableFallback(Throwable error) |
getName, getServiceDetails, getTimeoutMillispublic ImmutableCallableRequest(String name, FetchyEngine engine, RequestServiceDetails<API> service, Integer timeoutMillis, Call<OUTPUT,API,?> callable, CallFallback<OUTPUT> fallback)
public Callable<OUTPUT> getCallable(API api)
getCallable in class ImmutableRequest<OUTPUT,API,ERROR extends Exception>public Callable<OUTPUT> getCallableFallback(Throwable error)
getCallableFallback in class ImmutableRequest<OUTPUT,API,ERROR extends Exception>Copyright © 2017 Irenical. All rights reserved.