Top Fields Constructors Methods
org.apache.hc.core5.http2.impl.nio.bootstrap

pack-priv final Class CancellableExecution

extends Object
implements CancellableDependency
Class Inheritance
All Implemented Interfaces
org.apache.hc.core5.concurrent.CancellableDependency, org.apache.hc.core5.concurrent.Cancellable
Imports
java.util.concurrent.atomic.AtomicBoolean, .AtomicReference, org.apache.hc.core5.concurrent.Cancellable, .CancellableDependency

Field Summary

Modifier and TypeField and Description
private final AtomicBoolean
private final AtomicReference<Cancellable>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public boolean
cancel()

Implements org.apache.hc.core5.concurrent.Cancellable.cancel.

Cancels the ongoing operation or process.
public boolean
isCancelled()

Implements org.apache.hc.core5.concurrent.CancellableDependency.isCancelled.

Determines whether the process or operation has been cancelled.
public void
setDependency(final Cancellable cancellable)

Implements org.apache.hc.core5.concurrent.CancellableDependency.setDependency.

Sets Cancellable dependency on another ongoing process or operation represented by Cancellable.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cancelledback to summary
private final AtomicBoolean cancelled
dependencyRefback to summary
private final AtomicReference<Cancellable> dependencyRef

Constructor Detail

CancellableExecutionback to summary
pack-priv CancellableExecution()

Method Detail

cancelback to summary
public boolean cancel()

Implements org.apache.hc.core5.concurrent.Cancellable.cancel.

Doc from org.apache.hc.core5.concurrent.Cancellable.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.

Annotations
@Override
isCancelledback to summary
public boolean isCancelled()

Implements org.apache.hc.core5.concurrent.CancellableDependency.isCancelled.

Doc from org.apache.hc.core5.concurrent.CancellableDependency.isCancelled.

Determines whether the process or operation has been cancelled.

Returns:boolean

cancelled flag.

Annotations
@Override
setDependencyback to summary
public void setDependency(final Cancellable cancellable)

Implements org.apache.hc.core5.concurrent.CancellableDependency.setDependency.

Doc from org.apache.hc.core5.concurrent.CancellableDependency.setDependency.

Sets Cancellable dependency on another ongoing process or operation represented by Cancellable.

Annotations
@Override