public final class Http2GoAwayHandler extends Object
| Constructor and Description |
|---|
Http2GoAwayHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
onGoAwayReceived(io.netty.channel.Channel channel,
int lastStreamId,
long errorCode,
io.netty.buffer.ByteBuf debugData) |
void |
onGoAwaySent(io.netty.channel.Channel channel,
int lastStreamId,
long errorCode,
io.netty.buffer.ByteBuf debugData) |
void |
onStreamClosed(io.netty.channel.Channel channel,
io.netty.handler.codec.http2.Http2Stream stream) |
boolean |
receivedErrorGoAway()
Returns
true if the connection has received a GOAWAY frame with non-zero error code. |
boolean |
receivedGoAway()
Returns
true if the connection has received a GOAWAY frame. |
boolean |
sentGoAway()
Returns
true if the connection has sent a GOAWAY frame. |
public boolean sentGoAway()
true if the connection has sent a GOAWAY frame.public boolean receivedGoAway()
true if the connection has received a GOAWAY frame.public boolean receivedErrorGoAway()
true if the connection has received a GOAWAY frame with non-zero error code.public void onGoAwaySent(io.netty.channel.Channel channel,
int lastStreamId,
long errorCode,
io.netty.buffer.ByteBuf debugData)
public void onGoAwayReceived(io.netty.channel.Channel channel,
int lastStreamId,
long errorCode,
io.netty.buffer.ByteBuf debugData)
public void onStreamClosed(io.netty.channel.Channel channel,
io.netty.handler.codec.http2.Http2Stream stream)
Copyright © 2020 LeanCloud. All rights reserved.