Interface ProjectPersistingHandler

  • All Known Implementing Classes:
    ProjectsWatcher

    public interface ProjectPersistingHandler
    • Method Detail

      • executeTask

        void executeTask​(@NotNull
                         String description,
                         @NotNull
                         Runnable action)
        Schedules the given fs operation and waits for it until it finishes.
        Parameters:
        description - operation description
        action - fs operation
      • executeTask

        void executeTask​(@NotNull
                         String description,
                         @NotNull
                         Runnable action,
                         boolean requiresWriteConfigResponsibility)
      • scheduleTask

        @NotNull
        PersistTask scheduleTask​(@NotNull
                                 String description,
                                 @NotNull
                                 Runnable action)
        Schedules the given fs operation and does not wait for it.
        Parameters:
        description - operation description
        action - fs operation
        Returns:
        persisting task
      • getIncompleteTask

        @Nullable
        BackgroundPersistTask getIncompleteTask()
        Returns background persist task created by current thread which is not complete yet or null if there is no such a task
        Returns:
        see above