public final class Operations extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Operations.CompletedFuture<T>
This class represents a
Future in the completed state with a fixed result. |
| Constructor and Description |
|---|
Operations() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.hc.core5.concurrent.Cancellable |
cancellable(Future<?> future)
Creates a
Cancellable operation handle for an ongoing process
or operation represented by a Future. |
static org.apache.hc.core5.concurrent.Cancellable |
nonCancellable()
Creates a
Cancellable operation handle for an ongoing process
or operation that cannot be cancelled. |
public static org.apache.hc.core5.concurrent.Cancellable nonCancellable()
Cancellable operation handle for an ongoing process
or operation that cannot be cancelled. Attempts to cancel the operation
with this handle will have no effect.Copyright © 1999–2022 The Apache Software Foundation. All rights reserved.