Interface PersistTaskEx
-
- All Superinterfaces:
PersistTask
- All Known Implementing Classes:
BasePersistTask,ProjectPersistTask
public interface PersistTaskEx extends PersistTask
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidaddError(Exception error)voidawaitForStage(PersistTaskStage stage)booleancanBeInterrupted()longgetCreationTime()default FileWatchergetFileWatcher()UsergetUser()booleanisAddedToQueueInsideAnotherTask()default booleanisCanceled()voidmarkAsFinished()default booleannotifyFileWatcher()default voidonRemoveFromQueue()voidrethrowError()voidrun()voidsetAddedToQueueInsideAnotherTask()booleanupdateStage(PersistTaskStage stage)Updates the inner stage of the task without the database updating.-
Methods inherited from interface jetbrains.buildServer.serverSide.PersistTask
await, await, awaitUninterruptibly, getDescription, getError, getId, getStage
-
-
-
-
Method Detail
-
run
void run()
-
markAsFinished
void markAsFinished()
-
addError
void addError(@NotNull Exception error)
-
canBeInterrupted
boolean canBeInterrupted()
-
isCanceled
default boolean isCanceled()
-
getFileWatcher
@Nullable default FileWatcher getFileWatcher()
-
notifyFileWatcher
default boolean notifyFileWatcher()
-
onRemoveFromQueue
default void onRemoveFromQueue()
-
rethrowError
void rethrowError()
-
awaitForStage
void awaitForStage(@NotNull PersistTaskStage stage) throws InterruptedException- Throws:
InterruptedException
-
updateStage
boolean updateStage(@NotNull PersistTaskStage stage)Updates the inner stage of the task without the database updating.- Parameters:
stage- the current stage of the task- Returns:
trueif task's stage was changed,falseotherwise
-
getCreationTime
long getCreationTime()
-
setAddedToQueueInsideAnotherTask
void setAddedToQueueInsideAnotherTask()
-
isAddedToQueueInsideAnotherTask
boolean isAddedToQueueInsideAnotherTask()
-
getUser
@Nullable User getUser()
-
-