CompleteFuture
which is failed already. It is
recommended to use EventExecutor#newFailedFuture(Throwable)
instead of calling the constructor of this future.
Access | Constructor and Description |
---|---|
public | FailedFuture(EventExecutor
the executor, Throwable EventExecutor associated with this futurethe cause of failure cause)Creates a new instance. |
Modifier and Type | Method and Description |
---|---|
public Throwable | cause()
Implements io. |
public V | |
public boolean | isSuccess()
Implements io. true if and only if the I/O operation was completed
successfully.
|
public Future | sync()
Overrides io. Implements io. |
public Future | syncUninterruptibly()
Overrides io. Implements io. |
cause | back to summary |
---|---|
private final Throwable cause |
FailedFuture | back to summary |
---|---|
public FailedFuture(EventExecutor executor, Throwable cause) Creates a new instance.
|
cause | back to summary |
---|---|
public Throwable cause() Implements io. Doc from io. Returns the cause of the failed I/O operation if the I/O operation has failed. |
getNow | back to summary |
---|---|
public V getNow() Implements io. Doc from io. Return the result without blocking. If the future is not done yet this will return
|
isSuccess | back to summary |
---|---|
public boolean isSuccess() Implements io. Doc from io. Returns
|
sync | back to summary |
---|---|
public Future Overrides io. Implements io. Doc from io. Waits for this future until it is done, and rethrows the cause of the failure if this future failed.
|
syncUninterruptibly | back to summary |
---|---|
public Future Overrides io. Implements io. Doc from io. Waits for this future until it is done, and rethrows the cause of the failure if this future failed.
|