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 void
addError(Exception error)
void
awaitForStage(PersistTaskStage stage)
boolean
canBeInterrupted()
long
getCreationTime()
default FileWatcher
getFileWatcher()
User
getUser()
boolean
isAddedToQueueInsideAnotherTask()
default boolean
isCanceled()
void
markAsFinished()
default boolean
notifyFileWatcher()
default void
onRemoveFromQueue()
void
rethrowError()
void
run()
void
setAddedToQueueInsideAnotherTask()
boolean
updateStage(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:
true
if task's stage was changed,false
otherwise
-
getCreationTime
long getCreationTime()
-
setAddedToQueueInsideAnotherTask
void setAddedToQueueInsideAnotherTask()
-
isAddedToQueueInsideAnotherTask
boolean isAddedToQueueInsideAnotherTask()
-
getUser
@Nullable User getUser()
-
-