public interface PersistTask
Modifier and Type | Method and Description |
---|---|
void |
await()
Blocks caller until task is finished
|
boolean |
await(long timeoutMillis)
Blocks caller until the task is finished or timeout is exceeded
|
default void |
awaitUninterruptibly()
Blocks caller until task is finished.
|
java.lang.String |
getDescription()
Returns task description
|
java.lang.Throwable |
getError()
Returns an error thrown by fs operation or null
if there was no errors
|
PersistTaskStage |
getStage() |
void await() throws java.lang.InterruptedException
java.lang.InterruptedException
- if someone interrupts the caller threadboolean await(long timeoutMillis) throws java.lang.InterruptedException
timeoutMillis
- timeout in milliseconds to waitjava.lang.InterruptedException
- if the thread was interrupteddefault void awaitUninterruptibly()
@NotNull java.lang.String getDescription()
@Nullable java.lang.Throwable getError()
@NotNull PersistTaskStage getStage()