Class Quic
java.lang.Object
io.netty.handler.codec.quic.Quic
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidEnsure that QUIC implementation is usable on the running platform is available.static booleanReturnstrueif 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 ThrowableReturns the cause of unavailability.
-
Field Details
-
MAX_CONN_ID_LEN
-
-
Method Details
-
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:
UnsatisfiedLinkError- if unavailable
-