public final class SucceededFuture<V> extends CompleteFuture<V>
CompleteFuture
。
建议使用EventExecutor.newSucceededFuture(Object)
而不是调用这个未来的构造函数。
Constructor and Description |
---|
SucceededFuture(EventExecutor executor, V result)
创建一个新的实例。
|
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
cause()
如果I / O操作失败,则返回失败的I / O操作的原因。
|
V |
getNow()
无阻塞地返回结果。
|
boolean |
isSuccess()
当且仅当I / O操作成功完成时返回
true 。
|
addListener, addListeners, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, cancel, executor, isCancellable, isCancelled, isDone, removeListener, removeListeners, sync, syncUninterruptibly
get, get
public SucceededFuture(EventExecutor executor, V result)
executor
- 与这个未来相关的EventExecutor
Copyright © 2008–2018 The Netty Project. All rights reserved.