Package io.netty.handler.codec.http2
Class EspressoHttp2StreamChannelBootstrap
- java.lang.Object
-
- io.netty.handler.codec.http2.EspressoHttp2StreamChannelBootstrap
-
@UnstableApi public final class EspressoHttp2StreamChannelBootstrap extends java.lang.ObjectForked from Netty 4Http2StreamChannelBootstrapto allow usingEspressoHttp2MultiplexHandlerin the pipeline.
-
-
Constructor Summary
Constructors Constructor Description EspressoHttp2StreamChannelBootstrap(io.netty.channel.Channel channel)EspressoHttp2StreamChannelBootstrap(io.netty.channel.Channel channel, boolean offload)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description <T> EspressoHttp2StreamChannelBootstrapattr(io.netty.util.AttributeKey<T> key, T value)Allow to specify an initial attribute of the newly createdHttp2StreamChannel.EspressoHttp2StreamChannelBootstraphandler(io.netty.channel.ChannelHandler handler)theChannelHandlerto use for serving the requests.io.netty.util.concurrent.Future<io.netty.handler.codec.http2.Http2StreamChannel>open()Open a newHttp2StreamChannelto use.io.netty.util.concurrent.Future<io.netty.handler.codec.http2.Http2StreamChannel>open(io.netty.channel.EventLoop childChannelEventLoop)io.netty.util.concurrent.Future<io.netty.handler.codec.http2.Http2StreamChannel>open(io.netty.util.concurrent.Promise<io.netty.handler.codec.http2.Http2StreamChannel> promise, io.netty.channel.EventLoop childChannelEventLoop)Open a newHttp2StreamChannelto use and notifies the givenPromise.voidopen0(io.netty.channel.ChannelHandlerContext ctx, io.netty.util.concurrent.Promise<io.netty.handler.codec.http2.Http2StreamChannel> promise, io.netty.channel.EventLoop childChannelEventLoop)Deprecated.should not be used directly.<T> EspressoHttp2StreamChannelBootstrapoption(io.netty.channel.ChannelOption<T> option, T value)Allow to specify aChannelOptionwhich is used for theHttp2StreamChannelinstances once they got created.
-
-
-
Method Detail
-
option
public <T> EspressoHttp2StreamChannelBootstrap option(io.netty.channel.ChannelOption<T> option, T value)
Allow to specify aChannelOptionwhich is used for theHttp2StreamChannelinstances once they got created. Use a value ofnullto remove a previous setChannelOption.
-
attr
public <T> EspressoHttp2StreamChannelBootstrap attr(io.netty.util.AttributeKey<T> key, T value)
Allow to specify an initial attribute of the newly createdHttp2StreamChannel. If thevalueisnull, the attribute of the specifiedkeyis removed.
-
handler
public EspressoHttp2StreamChannelBootstrap handler(io.netty.channel.ChannelHandler handler)
theChannelHandlerto use for serving the requests.
-
open
public io.netty.util.concurrent.Future<io.netty.handler.codec.http2.Http2StreamChannel> open()
Open a newHttp2StreamChannelto use.- Returns:
- the
Futurethat will be notified once the channel was opened successfully or it failed.
-
open
public io.netty.util.concurrent.Future<io.netty.handler.codec.http2.Http2StreamChannel> open(io.netty.channel.EventLoop childChannelEventLoop)
-
open
public io.netty.util.concurrent.Future<io.netty.handler.codec.http2.Http2StreamChannel> open(io.netty.util.concurrent.Promise<io.netty.handler.codec.http2.Http2StreamChannel> promise, io.netty.channel.EventLoop childChannelEventLoop)Open a newHttp2StreamChannelto use and notifies the givenPromise.- Returns:
- the
Futurethat will be notified once the channel was opened successfully or it failed.
-
open0
@Deprecated public void open0(io.netty.channel.ChannelHandlerContext ctx, io.netty.util.concurrent.Promise<io.netty.handler.codec.http2.Http2StreamChannel> promise, io.netty.channel.EventLoop childChannelEventLoop)Deprecated.should not be used directly. Useopen()or
-
-