Interface PlatformProvider


public interface PlatformProvider
  • Method Details

    • name

      String name()
    • onStartup

      default void onStartup(Runnable runnable)
    • onShutdown

      default void onShutdown(Runnable runnable)
    • exit

      void exit(Throwable cause)
    • getTmpDirectory

      File getTmpDirectory()
      Returns:
      tmp directory specific to target platform. Implementation can make sure to create "tmp" directory in case it does not exists. The directory should be usually inside the corresponding server directory. In production, it should not be system directory like "/tmp" .