public static class DefaultIndex.Failure extends Object implements Index.Result
Constructor and Description |
---|
Failure(Error failure) |
Failure(Exception failure) |
Failure(RuntimeException failure) |
Modifier and Type | Method and Description |
---|---|
void |
await()
Await the result of the operation.
|
boolean |
await(long timeout,
TimeUnit unit)
Await the result of the operation for the specified time, throwing a
TimeoutException if the timeout is reached. |
boolean |
isDone()
Has the operation completed yet.
|
public Failure(Error failure)
public Failure(RuntimeException failure)
public Failure(Exception failure)
public void await()
Index.Result
await
in interface Index.Result
public boolean await(long timeout, TimeUnit unit)
Index.Result
TimeoutException
if the timeout is reached.await
in interface Index.Result
timeout
- the amount to waitunit
- the unit to count the timeout inpublic boolean isDone()
Index.Result
Index.Result.await()
and
Index.Result.await(long, TimeUnit)
will not block.isDone
in interface Index.Result
Copyright © 2002-2021 Atlassian. All Rights Reserved.