Interface PlatformHook.JavaExpirationCallback

  • Enclosing interface:
    PlatformHook
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public static interface PlatformHook.JavaExpirationCallback
    Called when an outdated version of Java is detected at startup.
    Since:
    12270
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void askUpdateJava​(java.lang.String updVersion, java.lang.String url, java.lang.String eolDate, boolean major)
      Asks user to update its version of Java.
    • Method Detail

      • askUpdateJava

        void askUpdateJava​(java.lang.String updVersion,
                           java.lang.String url,
                           java.lang.String eolDate,
                           boolean major)
        Asks user to update its version of Java.
        Parameters:
        updVersion - target update version
        url - download URL
        major - true for a migration towards a major version of Java (8:9), false otherwise
        eolDate - the EOL/expiration date