public interface Fetcher extends AutoCloseable
| 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 org.apache.http.concurrent.FutureCallback<Response> callback)
Fetch the desired HTTP page given in
Request. |
void |
start()
Fetcher starter.
|
closevoid 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 org.apache.http.concurrent.FutureCallback<Response> callback)
Request. Executes
callback upon completion.request - information for the page to fetch.callback - callbackCopyright © 2018. All rights reserved.