Package com.intellij.util.concurrency
Class FixedFuture<T>
java.lang.Object
com.intellij.util.concurrency.FixedFuture<T>
- All Implemented Interfaces:
Future<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancancel(boolean mayInterruptIfRunning) static <T> FixedFuture<T> completeExceptionally(Throwable throwable) get()booleanbooleanisDone()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.concurrent.Future
exceptionNow, resultNow, state
-
Constructor Details
-
FixedFuture
-
-
Method Details
-
completeExceptionally
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceFuture<T>
-
isDone
public boolean isDone() -
get
- Specified by:
getin interfaceFuture<T>- Throws:
ExecutionException
-
get
-