Class Quic

java.lang.Object
io.netty.handler.codec.quic.Quic

public final class Quic extends Object
  • Field Details

  • Method Details

    • 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:
      UnsatisfiedLinkError - if unavailable
    • unavailabilityCause

      @Nullable public static @Nullable Throwable unavailabilityCause()
      Returns the cause of unavailability.
      Returns:
      the cause if unavailable. null if available.