public final class Http3ServerPushStreamManager extends Object
newPushStream methods. It is required to
add the ChannelHandler returned from controlStreamListener() to the QuicChannel associated
with this manager.| Constructor and Description |
|---|
Http3ServerPushStreamManager(io.netty.incubator.codec.quic.QuicChannel channel)
Creates a new instance.
|
Http3ServerPushStreamManager(io.netty.incubator.codec.quic.QuicChannel channel,
int initialPushStreamsCountHint)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
io.netty.channel.ChannelInboundHandler |
controlStreamListener()
A
ChannelInboundHandler to be added to the QuicChannel associated with this
Http3ServerPushStreamManager to listen to control stream frames. |
boolean |
isPushAllowed()
Returns
true if server push is allowed at this point. |
io.netty.util.concurrent.Future<io.netty.incubator.codec.quic.QuicStreamChannel> |
newPushStream(long pushId,
io.netty.channel.ChannelHandler handler)
Returns a new HTTP/3 push-stream that will use the given
ChannelHandler
to dispatch Http3PushStreamFrames too. |
void |
newPushStream(long pushId,
io.netty.channel.ChannelHandler handler,
io.netty.util.concurrent.Promise<io.netty.incubator.codec.quic.QuicStreamChannel> promise)
Returns a new HTTP/3 push-stream that will use the given
ChannelHandler
to dispatch Http3PushStreamFrames too. |
void |
newPushStream(long pushId,
io.netty.channel.ChannelHandler handler,
UnaryOperator<io.netty.incubator.codec.quic.QuicStreamChannelBootstrap> bootstrapConfigurator,
io.netty.util.concurrent.Promise<io.netty.incubator.codec.quic.QuicStreamChannel> promise)
Returns a new HTTP/3 push-stream that will use the given
ChannelHandler
to dispatch Http3PushStreamFrames too. |
long |
reserveNextPushId()
Reserves a push ID to be used to create a new push stream subsequently.
|
public Http3ServerPushStreamManager(io.netty.incubator.codec.quic.QuicChannel channel)
channel - for which this manager is created.public Http3ServerPushStreamManager(io.netty.incubator.codec.quic.QuicChannel channel,
int initialPushStreamsCountHint)
channel - for which this manager is created.initialPushStreamsCountHint - a hint for the number of push streams that may be created.public boolean isPushAllowed()
true if server push is allowed at this point.true if server push is allowed at this point.public long reserveNextPushId()
IllegalStateException - If it is not allowed to create any more push streams on the associated
QuicChannel. Use isPushAllowed() to check if server push is allowed.public io.netty.util.concurrent.Future<io.netty.incubator.codec.quic.QuicStreamChannel> newPushStream(long pushId,
io.netty.channel.ChannelHandler handler)
ChannelHandler
to dispatch Http3PushStreamFrames too. The needed HTTP/3 codecs are automatically added to the
pipeline as well.pushId - for the push stream. This MUST be obtained using reserveNextPushId().handler - the ChannelHandler to add. Can be null.Future that will be notified once the push-stream was opened.public void newPushStream(long pushId,
io.netty.channel.ChannelHandler handler,
io.netty.util.concurrent.Promise<io.netty.incubator.codec.quic.QuicStreamChannel> promise)
ChannelHandler
to dispatch Http3PushStreamFrames too. The needed HTTP/3 codecs are automatically added to the
pipeline as well.pushId - for the push stream. This MUST be obtained using reserveNextPushId().handler - the ChannelHandler to add. Can be null.promise - to indicate creation of the push stream.public void newPushStream(long pushId,
io.netty.channel.ChannelHandler handler,
UnaryOperator<io.netty.incubator.codec.quic.QuicStreamChannelBootstrap> bootstrapConfigurator,
io.netty.util.concurrent.Promise<io.netty.incubator.codec.quic.QuicStreamChannel> promise)
ChannelHandler
to dispatch Http3PushStreamFrames too. The needed HTTP/3 codecs are automatically added to the
pipeline as well.pushId - for the push stream. This MUST be obtained using reserveNextPushId().handler - the ChannelHandler to add. Can be null.bootstrapConfigurator - UnaryOperator to configure the QuicStreamChannelBootstrap used.promise - to indicate creation of the push stream.public io.netty.channel.ChannelInboundHandler controlStreamListener()
ChannelInboundHandler to be added to the QuicChannel associated with this
Http3ServerPushStreamManager to listen to control stream frames.ChannelInboundHandler to be added to the QuicChannel associated with this
Http3ServerPushStreamManager to listen to control stream frames.Copyright © 2020–2022 The Netty Project. All rights reserved.