Package io.netty.handler.codec.quic
Class Quic
- java.lang.Object
-
- io.netty.handler.codec.quic.Quic
-
public final class Quic extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static intMAX_CONN_ID_LENThe maximum length of the connection id.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidensureAvailability()Ensure that QUIC implementation is usable on the running platform is available.static booleanisAvailable()Returnstrueif and only if the QUIC implementation is usable on the running platform is available.static booleanisVersionSupported(int version)Return if the given QUIC version is supported.static @Nullable java.lang.ThrowableunavailabilityCause()Returns the cause of unavailability.
-
-
-
Field Detail
-
MAX_CONN_ID_LEN
public static final int MAX_CONN_ID_LEN
The maximum length of the connection id.- See Also:
- Constant Field Values
-
-
Method Detail
-
isVersionSupported
public static boolean isVersionSupported(int version)
Return if the given QUIC version is supported.- Parameters:
version- the version.- Returns:
trueif supported,falseotherwise.
-
isAvailable
public static boolean isAvailable()
Returnstrueif and only if the QUIC implementation is usable on the running platform is available.- Returns:
trueif this QUIC implementation can be used on the current platform,falseotherwise.
-
ensureAvailability
public static void ensureAvailability()
Ensure that QUIC implementation is usable on the running platform is available.- Throws:
java.lang.UnsatisfiedLinkError- if unavailable
-
unavailabilityCause
@Nullable public static @Nullable java.lang.Throwable unavailabilityCause()
Returns the cause of unavailability.- Returns:
- the cause if unavailable.
nullif available.
-
-