-
- All Known Subinterfaces:
Channel
,ChannelHandlerContext
,ChannelOutboundInvoker
,ChannelPipeline
,DatagramChannel
,EventExecutor
,EventLoop
,Http2StreamChannel
,OrderedEventExecutor
,ServerChannel
,ServerSocketChannel
,SocketChannel
,UnixChannel
- All Known Implementing Classes:
AbstractChannel
,AbstractChannel.DefaultAbstractChannelPipeline
,AbstractEventExecutor
,AbstractNioByteChannel
,AbstractNioChannel
,AbstractNioMessageChannel
,AbstractScheduledEventExecutor
,AbstractServerChannel
,DefaultChannelPipeline
,DelegatingChannelHandlerContext
,EmbeddedChannel
,EpollDatagramChannel
,EpollServerSocketChannel
,EpollSocketChannel
,GlobalEventExecutor
,ImmediateEventExecutor
,KQueueDatagramChannel
,KQueueServerSocketChannel
,KQueueSocketChannel
,LocalChannel
,LocalServerChannel
,NioDatagramChannel
,NioServerSocketChannel
,NioSocketChannel
,SingleThreadEventExecutor
,SingleThreadEventLoop
,UnorderedThreadPoolEventExecutor
public interface FuturePromiseFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <V> Future<V>
newFailedFuture(Throwable cause)
Create a newFuture
which is marked as failed already.<V> Promise<V>
newPromise()
Return a newPromise
.default Future<Void>
newSucceededFuture()
Create a newFuture
which is marked as succeeded already.default <V> Future<V>
newSucceededFuture(V result)
Create a newFuture
which is marked as succeeded already.
-
-
-
Method Detail
-
newSucceededFuture
default <V> Future<V> newSucceededFuture(V result)
Create a newFuture
which is marked as succeeded already. SoAsynchronousResult.isSuccess()
will returntrue
. AllFutureListener
added to it will be notified directly. Also every call of blocking methods will just return without blocking.
-
newSucceededFuture
default Future<Void> newSucceededFuture()
Create a newFuture
which is marked as succeeded already. SoAsynchronousResult.isSuccess()
will returntrue
. AllFutureListener
added to it will be notified directly. Also every call of blocking methods will just return without blocking.
-
newFailedFuture
default <V> Future<V> newFailedFuture(Throwable cause)
Create a newFuture
which is marked as failed already. SoAsynchronousResult.isSuccess()
will returnfalse
. AllFutureListener
added to it will be notified directly. Also every call of blocking methods will just return without blocking.
-
-