Package jetbrains.buildServer.serverSide
Interface ProjectPersistingHandler
-
- All Known Implementing Classes:
ProjectsWatcher
public interface ProjectPersistingHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
executeTask(String description, Runnable action)
Schedules the given fs operation and waits for it until it finishes.void
executeTask(String description, Runnable action, boolean requiresWriteConfigResponsibility)
BackgroundPersistTask
getIncompleteTask()
Returns background persist task created by current thread which is not complete yet or null if there is no such a taskBackgroundPersistTask
schedulePersistTask(ConfigAction cause)
PersistTask
scheduleTask(String description, Runnable action)
Schedules the given fs operation and does not wait for it.
-
-
-
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 descriptionaction
- 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 descriptionaction
- fs operation- Returns:
- persisting task
-
schedulePersistTask
@NotNull BackgroundPersistTask schedulePersistTask(@NotNull ConfigAction cause)
-
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
-
-