public final class QuicConnectionCloseEvent extends java.lang.Object implements QuicEvent
| Modifier and Type | Method and Description |
|---|---|
int |
error()
Return the error that was provided for the close.
|
static int |
extractTlsError(int error)
Extract the contained
TLS error from the QUIC error. |
boolean |
isApplicationClose()
Return
true if this was an application close, false otherwise. |
boolean |
isTlsError()
Returns
true if a TLS error
is contained. |
byte[] |
reason()
Returns the reason for the close, which may be empty if no reason was given as part of the close.
|
java.lang.String |
toString() |
public boolean isApplicationClose()
true if this was an application close, false otherwise.public int error()
public boolean isTlsError()
true if a TLS error
is contained.true if this is an TLS error, false otherwise.public byte[] reason()
public java.lang.String toString()
toString in class java.lang.Objectpublic static int extractTlsError(int error)
TLS error from the QUIC error. If the given QUIC error does not
contain a TLS error it will return -1.error - the QUIC errorTLS error or -1 if there was no TLS error contained.Copyright © 2020-2024 The Netty Project. All Rights Reserved.