public interface ThreadPauser extends Pausible
Modifier and Type | Method and Description |
---|---|
static ThreadPauser |
create() |
long |
currentPauseLength()
How long has this job been paused for currently?
This does not include any previous pauses.
|
long |
currentRunPhaseLength()
How long has this job been running currently?
This does not include any previous running phases.
|
boolean |
isPaused()
Is this operation currently paused?
|
void |
pause(boolean paused)
Pause or unpause this operation.
|
long |
pausedTotal()
How long has this job been paused in total?
|
void |
waitIfPaused()
If the thread we're controlling is supposed to be paused, wait until it is
unpaused or it's interrupted.
|
static ThreadPauser create()
void pause(boolean paused)
Pausible
boolean isPaused()
Pausible
void waitIfPaused() throws InterruptedException
InterruptedException
- if thread was interrupted from elsewhere (e.g. load manager)long currentPauseLength()
long currentRunPhaseLength()
long pausedTotal()
Copyright © 2020 Instituut voor Nederlandse Taal (INT). All rights reserved.