CompleteFuture
which is succeeded already. It is
recommended to use EventExecutor#newSucceededFuture(Object)
instead of
calling the constructor of this future.
Modifier and Type | Field and Description |
---|---|
private final V |
Access | Constructor and Description |
---|---|
public | SucceededFuture(EventExecutor
the executor, V result)EventExecutor associated with this futureCreates 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.
|
result | back to summary |
---|---|
private final V result |
SucceededFuture | back to summary |
---|---|
public SucceededFuture(EventExecutor executor, V result) 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
|