Package org.hawaiiframework.async.http
Class HttpComponentHttpRequestTaskAbortStrategy
- java.lang.Object
-
- org.hawaiiframework.async.http.HttpComponentHttpRequestTaskAbortStrategy
-
- All Implemented Interfaces:
TaskAbortStrategy
public class HttpComponentHttpRequestTaskAbortStrategy extends Object implements TaskAbortStrategy
Strategy to abort and Http Components HTTP request.These requests are used by (for instance) Spring's RestTemplate.
- Since:
- 2.0.0
- Author:
- Rutger Lubbers, Paul Klos
-
-
Constructor Summary
Constructors Constructor Description HttpComponentHttpRequestTaskAbortStrategy(@NotNull org.apache.http.client.methods.HttpUriRequest request)
Construct a new instance with therequest
we may have to abort.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
invoke()
Invoke the strategy in order to abort the task (that registered this abort strategy).
-
-
-
Constructor Detail
-
HttpComponentHttpRequestTaskAbortStrategy
public HttpComponentHttpRequestTaskAbortStrategy(@NotNull @NotNull org.apache.http.client.methods.HttpUriRequest request)
Construct a new instance with therequest
we may have to abort.- Parameters:
request
- The request about to be executed (which we have to guard).
-
-
Method Detail
-
invoke
public boolean invoke()
Invoke the strategy in order to abort the task (that registered this abort strategy).- Specified by:
invoke
in interfaceTaskAbortStrategy
-
-