public interface ChannelFutureFactory
ChannelFuture's| Modifier and Type | Method and Description |
|---|---|
ChannelFuture |
newFailedFuture(Throwable cause)
Create a new
ChannelFuture which is marked as fakued already. |
ChannelFuture |
newFuture()
Create a new
ChannelFuture |
ChannelFuture |
newSucceededFuture()
Create a new
ChannelFuture which is marked as successes already. |
ChannelFuture newFuture()
ChannelFutureChannelFuture newSucceededFuture()
ChannelFuture which is marked as successes already. So ChannelFuture.isSuccess()
will return true. All ChannelFutureListener added to it will be notified directly. Also
every call of blocking methods will just return without blocking.ChannelFuture newFailedFuture(Throwable cause)
ChannelFuture which is marked as fakued already. So ChannelFuture.isSuccess()
will return false. All ChannelFutureListener added to it will be notified directly. Also
every call of blocking methods will just return without blocking.Copyright © 2008-2012 The Netty Project. All Rights Reserved.