Class Quic


  • public final class Quic
    extends java.lang.Object
    • 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()
      Returns true 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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()
        Returns true 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.