public interface Fetcher extends Interruptible
| Modifier and Type | Method and Description |
|---|---|
@NotNull Future<Response> |
fetch(@NotNull Request request)
Fetch the desired HTTP page given in
Request. |
@NotNull Future<Response> |
fetch(@NotNull Request request,
@NotNull Callback callback)
Fetch the desired HTTP page given in
Request. |
void |
start()
Fetcher starter.
|
interruptAndCloseclosevoid start()
@NotNull @NotNull Future<Response> fetch(@NotNull @NotNull Request request)
Request.request - information for the page to fetch.@NotNull @NotNull Future<Response> fetch(@NotNull @NotNull Request request, @NotNull @NotNull Callback callback)
Request. Executes
callback upon completion.request - information for the page to fetch.callback - callbackCopyright © 2019. All rights reserved.