public static class

DefaultIndex.Failure

extends Object
implements Index.Result
java.lang.Object
   ↳ com.atlassian.jira.index.DefaultIndex.Failure

Class Overview

Indicate that an operation failed.

Summary

Public Constructors
DefaultIndex.Failure(Error failure)
DefaultIndex.Failure(RuntimeException failure)
DefaultIndex.Failure(Exception failure)
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.index.Index.Result

Public Constructors

public DefaultIndex.Failure (Error failure)

public DefaultIndex.Failure (RuntimeException failure)

public DefaultIndex.Failure (Exception failure)

Public Methods

public void await ()

Await the result of the operation.

public boolean await (long timeout, TimeUnit unit)

Await the result of the operation for the specified time, throwing a TimeoutException if the timeout is reached.

Parameters
timeout the amount to wait
unit 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.

public boolean isDone ()

Has the operation completed yet. If true then await() and await(long, TimeUnit) will not block.

Returns
  • whether the operation is complete or not.