public class MockResult extends Object implements Index.Result
| Constructor and Description | 
|---|
MockResult()  | 
| 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.Resultawait in interface Index.Resultpublic boolean await(long timeout,
                     TimeUnit unit)
Index.ResultTimeoutException if the timeout is reached.await in interface Index.Resulttimeout - the amount to waitunit - the unit to count the timeout inpublic boolean isDone()
Index.ResultIndex.Result.await() and
 Index.Result.await(long, TimeUnit) will not block.isDone in interface Index.ResultCopyright © 2002-2021 Atlassian. All Rights Reserved.