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 int
MAX_CONN_ID_LEN
The maximum length of the connection id.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
ensureAvailability()
Ensure that QUIC implementation is usable on the running platform is available.static boolean
isAvailable()
Returnstrue
if and only if the QUIC implementation is usable on the running platform is available.static boolean
isVersionSupported(int version)
Return if the given QUIC version is supported.static @Nullable java.lang.Throwable
unavailabilityCause()
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:
true
if supported,false
otherwise.
-
isAvailable
public static boolean isAvailable()
Returnstrue
if and only if the QUIC implementation is usable on the running platform is available.- Returns:
true
if this QUIC implementation can be used on the current platform,false
otherwise.
-
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.
null
if available.
-
-