Package org.apache.http.concurrent
Interface Cancellable
- All Known Subinterfaces:
HttpAsyncClientExchangeHandler
,HttpAsyncRequestExecutionHandler<T>
,HttpAsyncResponseConsumer<T>
- All Known Implementing Classes:
AbstractAsyncResponseConsumer
,BasicAsyncClientExchangeHandler
,BasicAsyncRequestExecutionHandler
,BasicAsyncResponseConsumer
,BasicFuture
,LeaseRequest
,PipeliningClientExchangeHandler
public interface Cancellable
A
Cancellable
represents a process or an operation that can be
canceled.- Since:
- 4.2
-
Method Summary
-
Method Details
-
cancel
boolean cancel()Cancels the ongoing operation or process.- Returns:
true
if the operation or process has been cancelled as a result of this method call orfalse
if it has already been cancelled or not started.
-