T
- the type of result that this operation producespublic class FinishedIoFuture<T> extends AbstractIoFuture<T>
IoFuture
that represents an immediately-successful operation.IoFuture.HandlingNotifier<T,A>, IoFuture.Notifier<T,A>, IoFuture.Status
Constructor and Description |
---|
FinishedIoFuture(T result)
Create an instance.
|
Modifier and Type | Method and Description |
---|---|
IoFuture<T> |
cancel()
Cancel the operation.
|
addCancelHandler, addNotifier, await, await, awaitInterruptibly, awaitInterruptibly, get, getException, getInterruptibly, getNotifierExecutor, getStatus, runNotifier, setCancelled, setException, setResult
public FinishedIoFuture(T result)
result
- the operation resultpublic IoFuture<T> cancel()
cancel
in interface Cancellable
cancel
in interface IoFuture<T>
cancel
in class AbstractIoFuture<T>
Copyright © 2018 JBoss by Red Hat. All rights reserved.