Top Description Methods
org.apache.hc.core5.concurrent

public Interface Cancellable

Known Direct Subinterfaces
org.apache.hc.core5.concurrent.CancellableDependency, org.apache.hc.core5.reactor.Command
Known Direct Implementers
org.apache.hc.core5.concurrent.CompletedFuture, org.apache.hc.core5.pool.LaxConnPool.LeaseRequest, org.apache.hc.core5.concurrent.BasicFuture

A Cancellable represents a process or an operation that can be canceled.
Since
4.2

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the operation or process has been cancelled as a result of this method call or false if it has already been cancelled or not started.
cancel
()

Cancels the ongoing operation or process.

Method Detail

cancelback to summary
public boolean cancel()

Cancels the ongoing operation or process.

Returns:boolean

true if the operation or process has been cancelled as a result of this method call or false if it has already been cancelled or not started.