Interface TmpFiles

  • All Known Implementing Classes:
    TmpFilesImpl

    public interface TmpFiles
    • Method Detail

      • createServerTempDir

        @NotNull
        File createServerTempDir​(@NotNull
                                 String name)
                          throws IOException
        Creates and returns a temp dir with the specified name as a suffix which will be removed on server shutdown
        Parameters:
        name -
        Returns:
        see above
        Throws:
        IOException - if there is an error during temp dir creation
      • addServerTempDir

        void addServerTempDir​(@NotNull
                              File dir)
        Registers the specified dir for removal on server shutdown
        Parameters:
        dir - directory of interest