Class Cancellable
java.lang.Object
co.elastic.clients.transport.rest5_client.low_level.Cancellable
- All Implemented Interfaces:
org.apache.hc.core5.concurrent.Cancellable
public abstract class Cancellable
extends Object
implements org.apache.hc.core5.concurrent.Cancellable
Represents an operation that can be cancelled.
Returned when executing async requests through
Rest5Client.performRequestAsync(Request, ResponseListener), so that the request
can be cancelled if needed. Cancelling a request will result in calling
HttpUriRequestBase.abort() on the underlying
request object, which will in turn cancel its corresponding Future.
Note that cancelling a request does not automatically translate to aborting its execution on the server
side, which needs to be specifically implemented in each API.-
Constructor Details
-
Cancellable
public Cancellable()
-