Package com.atlassian.jira.index
Class DefaultIndex.Failure
java.lang.Object
com.atlassian.jira.index.DefaultIndex.Failure
- All Implemented Interfaces:
Index.Result
- Enclosing class:
DefaultIndex
Indicate that an operation failed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidawait()Await the result of the operation.booleanAwait the result of the operation for the specified time, throwing aTimeoutExceptionif the timeout is reached.booleanisDone()Has the operation completed yet.
-
Constructor Details
-
Failure
-
Failure
-
Failure
-
-
Method Details
-
await
public void await()Description copied from interface:Index.ResultAwait the result of the operation.- Specified by:
awaitin interfaceIndex.Result
-
await
Description copied from interface:Index.ResultAwait the result of the operation for the specified time, throwing aTimeoutExceptionif the timeout is reached.- Specified by:
awaitin interfaceIndex.Result- Parameters:
timeout- the amount to waitunit- the unit to count the timeout in- Returns:
- false if the timeout is exceeded before the underlying operation has completed, true if it has completed in time.
-
isDone
public boolean isDone()Description copied from interface:Index.ResultHas the operation completed yet. If true thenIndex.Result.await()andIndex.Result.await(long, TimeUnit)will not block.- Specified by:
isDonein interfaceIndex.Result- Returns:
- whether the operation is complete or not.
-