@UnstableApi public class Http2OutboundFrameLogger extends Object implements io.netty.handler.codec.http2.Http2FrameWriter
Http2FrameWriter that logs all outbound frames before calling the
writer.| 限定符和类型 | 字段和说明 |
|---|---|
static io.prometheus.client.Histogram |
writeHeaderLogDuration |
| 构造器和说明 |
|---|
Http2OutboundFrameLogger(io.netty.handler.codec.http2.Http2FrameWriter writer,
io.netty.handler.codec.http2.Http2FrameLogger logger) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
io.netty.handler.codec.http2.Http2FrameWriter.Configuration |
configuration() |
io.netty.channel.ChannelFuture |
writeData(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
io.netty.buffer.ByteBuf data,
int padding,
boolean endStream,
io.netty.channel.ChannelPromise promise) |
io.netty.channel.ChannelFuture |
writeFrame(io.netty.channel.ChannelHandlerContext ctx,
byte frameType,
int streamId,
io.netty.handler.codec.http2.Http2Flags flags,
io.netty.buffer.ByteBuf payload,
io.netty.channel.ChannelPromise promise) |
io.netty.channel.ChannelFuture |
writeGoAway(io.netty.channel.ChannelHandlerContext ctx,
int lastStreamId,
long errorCode,
io.netty.buffer.ByteBuf debugData,
io.netty.channel.ChannelPromise promise) |
io.netty.channel.ChannelFuture |
writeHeaders(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
io.netty.handler.codec.http2.Http2Headers headers,
int padding,
boolean endStream,
io.netty.channel.ChannelPromise promise) |
io.netty.channel.ChannelFuture |
writeHeaders(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
io.netty.handler.codec.http2.Http2Headers headers,
int streamDependency,
short weight,
boolean exclusive,
int padding,
boolean endStream,
io.netty.channel.ChannelPromise promise) |
io.netty.channel.ChannelFuture |
writePing(io.netty.channel.ChannelHandlerContext ctx,
boolean ack,
long data,
io.netty.channel.ChannelPromise promise) |
io.netty.channel.ChannelFuture |
writePriority(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
int streamDependency,
short weight,
boolean exclusive,
io.netty.channel.ChannelPromise promise) |
io.netty.channel.ChannelFuture |
writePushPromise(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
int promisedStreamId,
io.netty.handler.codec.http2.Http2Headers headers,
int padding,
io.netty.channel.ChannelPromise promise) |
io.netty.channel.ChannelFuture |
writeRstStream(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
long errorCode,
io.netty.channel.ChannelPromise promise) |
io.netty.channel.ChannelFuture |
writeSettings(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http2.Http2Settings settings,
io.netty.channel.ChannelPromise promise) |
io.netty.channel.ChannelFuture |
writeSettingsAck(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.ChannelPromise promise) |
io.netty.channel.ChannelFuture |
writeWindowUpdate(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
int windowSizeIncrement,
io.netty.channel.ChannelPromise promise) |
public static final io.prometheus.client.Histogram writeHeaderLogDuration
public Http2OutboundFrameLogger(io.netty.handler.codec.http2.Http2FrameWriter writer,
io.netty.handler.codec.http2.Http2FrameLogger logger)
public io.netty.channel.ChannelFuture writeData(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
io.netty.buffer.ByteBuf data,
int padding,
boolean endStream,
io.netty.channel.ChannelPromise promise)
writeData 在接口中 io.netty.handler.codec.http2.Http2DataWriterpublic io.netty.channel.ChannelFuture writeHeaders(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
io.netty.handler.codec.http2.Http2Headers headers,
int padding,
boolean endStream,
io.netty.channel.ChannelPromise promise)
writeHeaders 在接口中 io.netty.handler.codec.http2.Http2FrameWriterpublic io.netty.channel.ChannelFuture writeHeaders(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
io.netty.handler.codec.http2.Http2Headers headers,
int streamDependency,
short weight,
boolean exclusive,
int padding,
boolean endStream,
io.netty.channel.ChannelPromise promise)
writeHeaders 在接口中 io.netty.handler.codec.http2.Http2FrameWriterpublic io.netty.channel.ChannelFuture writePriority(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
int streamDependency,
short weight,
boolean exclusive,
io.netty.channel.ChannelPromise promise)
writePriority 在接口中 io.netty.handler.codec.http2.Http2FrameWriterpublic io.netty.channel.ChannelFuture writeRstStream(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
long errorCode,
io.netty.channel.ChannelPromise promise)
writeRstStream 在接口中 io.netty.handler.codec.http2.Http2FrameWriterpublic io.netty.channel.ChannelFuture writeSettings(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http2.Http2Settings settings,
io.netty.channel.ChannelPromise promise)
writeSettings 在接口中 io.netty.handler.codec.http2.Http2FrameWriterpublic io.netty.channel.ChannelFuture writeSettingsAck(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.ChannelPromise promise)
writeSettingsAck 在接口中 io.netty.handler.codec.http2.Http2FrameWriterpublic io.netty.channel.ChannelFuture writePing(io.netty.channel.ChannelHandlerContext ctx,
boolean ack,
long data,
io.netty.channel.ChannelPromise promise)
writePing 在接口中 io.netty.handler.codec.http2.Http2FrameWriterpublic io.netty.channel.ChannelFuture writePushPromise(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
int promisedStreamId,
io.netty.handler.codec.http2.Http2Headers headers,
int padding,
io.netty.channel.ChannelPromise promise)
writePushPromise 在接口中 io.netty.handler.codec.http2.Http2FrameWriterpublic io.netty.channel.ChannelFuture writeGoAway(io.netty.channel.ChannelHandlerContext ctx,
int lastStreamId,
long errorCode,
io.netty.buffer.ByteBuf debugData,
io.netty.channel.ChannelPromise promise)
writeGoAway 在接口中 io.netty.handler.codec.http2.Http2FrameWriterpublic io.netty.channel.ChannelFuture writeWindowUpdate(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
int windowSizeIncrement,
io.netty.channel.ChannelPromise promise)
writeWindowUpdate 在接口中 io.netty.handler.codec.http2.Http2FrameWriterpublic io.netty.channel.ChannelFuture writeFrame(io.netty.channel.ChannelHandlerContext ctx,
byte frameType,
int streamId,
io.netty.handler.codec.http2.Http2Flags flags,
io.netty.buffer.ByteBuf payload,
io.netty.channel.ChannelPromise promise)
writeFrame 在接口中 io.netty.handler.codec.http2.Http2FrameWriterpublic void close()
close 在接口中 io.netty.handler.codec.http2.Http2FrameWriterclose 在接口中 Closeableclose 在接口中 AutoCloseablepublic io.netty.handler.codec.http2.Http2FrameWriter.Configuration configuration()
configuration 在接口中 io.netty.handler.codec.http2.Http2FrameWriterCopyright © 2023 PingCAP. All rights reserved.