public class ProtocolIoFuture<T> extends AbstractIoFuture<T>
IoFuture.HandlingNotifier<T,A>, IoFuture.Notifier<T,A>, IoFuture.Status
Constructor and Description |
---|
ProtocolIoFuture() |
Modifier and Type | Method and Description |
---|---|
Exception |
getHeldException() |
protected boolean |
setException(IOException exception)
Set the exception for this operation.
|
protected void |
setHeldException(Exception exception) |
protected boolean |
setResult(T result)
Set the result for this operation.
|
addCancelHandler, addNotifier, await, await, awaitInterruptibly, awaitInterruptibly, cancel, get, getException, getInterruptibly, getNotifierExecutor, getStatus, runNotifier, setCancelled
protected boolean setResult(T result)
AbstractIoFuture
setResult
in class AbstractIoFuture<T>
result
- the result to setfalse
if the operation was already completed, true
otherwiseprotected boolean setException(IOException exception)
AbstractIoFuture
setException
in class AbstractIoFuture<T>
exception
- the exception to setfalse
if the operation was already completed, true
otherwiseprotected void setHeldException(Exception exception)
public Exception getHeldException()
Copyright © 2018 JBoss by Red Hat. All rights reserved.