@UnstableApi public interface Http2ConnectionEncoder extends Http2FrameWriter
Http2FrameWriter.Configuration
Modifier and Type | Method and Description |
---|---|
Http2Connection |
connection()
Provides direct access to the underlying connection.
|
Http2RemoteFlowController |
flowController()
Provides the remote flow controller for managing outbound traffic.
|
Http2FrameWriter |
frameWriter()
Provides direct access to the underlying frame writer object.
|
void |
lifecycleManager(Http2LifecycleManager lifecycleManager)
Sets the lifecycle manager.
|
Http2Settings |
pollSentSettings()
Gets the local settings on the top of the queue that has been sent but not ACKed.
|
void |
remoteSettings(Http2Settings settings)
Sets the settings for the remote endpoint of the HTTP/2 connection.
|
ChannelFuture |
writeFrame(ChannelHandlerContext ctx,
byte frameType,
int streamId,
Http2Flags flags,
ByteBuf payload,
ChannelPromise promise)
Writes the given data to the internal
Http2FrameWriter without performing any
state checks on the connection/stream. |
close, configuration, writeGoAway, writeHeaders, writeHeaders, writePing, writePriority, writePushPromise, writeRstStream, writeSettings, writeSettingsAck, writeWindowUpdate
writeData
void lifecycleManager(Http2LifecycleManager lifecycleManager)
Http2Connection connection()
Http2RemoteFlowController flowController()
Http2FrameWriter frameWriter()
Http2Settings pollSentSettings()
null
.void remoteSettings(Http2Settings settings) throws Http2Exception
Http2Exception
ChannelFuture writeFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, ByteBuf payload, ChannelPromise promise)
Http2FrameWriter
without performing any
state checks on the connection/stream.writeFrame
in interface Http2FrameWriter
ctx
- the context to use for writing.frameType
- the frame type identifier.streamId
- the stream for which to send the frame.flags
- the flags to write for this frame.payload
- the payload to write for this frame. This will be released by this method.promise
- the promise for the write.Copyright © 2008–2017 The Netty Project. All rights reserved.