public static class DefaultIndex.Success extends Object implements Index.Result
Constructor and Description |
---|
Success() |
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 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-2019 Atlassian. All Rights Reserved.