GeezerVison is showing netty.io — Http2ConnectionEncoder (Netty API Reference (4.1.141.Final))
Interface Http2ConnectionEncoder
-
-
Method Summary
Modifier and Type
Method
Description
Provides direct access to the underlying connection.
Provides the remote flow controller for managing outbound traffic.
Provides direct access to the underlying frame writer object.
void
Sets the lifecycle manager.
Gets the local settings on the top of the queue that has been sent but not ACKed.
void
Sets the settings for the remote endpoint of the HTTP/2 connection.
Writes the given data to the internal Http2FrameWriter without performing any
state checks on the connection/stream.
Methods inherited from interface Http2DataWriter
writeData
Modifier and Type
Method
Description
Writes a DATA frame to the remote endpoint.
Methods inherited from interface Http2FrameWriter
close, configuration, writeGoAway, writeHeaders, writeHeaders, writePing, writePriority, writePushPromise, writeRstStream, writeSettings, writeSettingsAck, writeWindowUpdate
Modifier and Type
Method
Description
void
Closes this writer and frees any allocated resources.
Writes a GO_AWAY frame to the remote endpoint.
Writes a HEADERS frame to the remote endpoint.
Writes a HEADERS frame with priority specified to the remote endpoint.
Writes a PING frame to the remote endpoint.
Writes a PRIORITY frame to the remote endpoint.
Writes a PUSH_PROMISE frame to the remote endpoint.
Writes a RST_STREAM frame to the remote endpoint.
Writes a SETTINGS frame to the remote endpoint.
Writes a SETTINGS acknowledgment to the remote endpoint.
Writes a WINDOW_UPDATE frame to the remote endpoint.
-
Method Details
-
lifecycleManager
Sets the lifecycle manager. Must be called as part of initialization before the encoder is used.
-
connection
Provides direct access to the underlying connection.
-
flowController
Provides the remote flow controller for managing outbound traffic.
-
frameWriter
Provides direct access to the underlying frame writer object.
-
pollSentSettings
Gets the local settings on the top of the queue that has been sent but not ACKed. This may
return null.
-
remoteSettings
Sets the settings for the remote endpoint of the HTTP/2 connection.
- Throws:
Http2Exception
-
writeFrame
Writes the given data to the internal Http2FrameWriter without performing any
state checks on the connection/stream.
- Specified by:
writeFrame in interface Http2FrameWriter
- Parameters:
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.
- Returns:
- the future for the write.
|