public interface HttpExecutor
HttpExecutor is responsible to manage HttpRequests to
realize the following behavior:
HttpRequests according there
HttpRequest.getPriority() and
HttpRequest.getCreationTimestamp() orderingHttpRequest is not executed
twice, but the other waiting HttpRequest gets the result of the other
finished one. To determine "same" HttpRequest a correct link
HttpRequest#equals(Object) and HttpRequest#hashCode()} implementation is
required, as well as Comparable| Modifier and Type | Method and Description |
|---|---|
void |
cancelAllOfOwner(Object owner)
Cancel all
HttpRequests of this owner |
boolean |
submitTask(HttpTask<?> task)
Add a task to the
HttpExecutor. |
boolean submitTask(HttpTask<?> task)
HttpExecutor. The scheduler will then execute
this task. The time when the task gets executed depends on the concrete
HttpExecutor implementationtask - void cancelAllOfOwner(Object owner)
HttpRequests of this ownerowner - Copyright © 2015 Hannes Dorfmann. All rights reserved.