Package jetbrains.buildServer.util
Class FutureAction<T>
- java.lang.Object
-
- jetbrains.buildServer.util.FutureAction<T>
-
-
Constructor Summary
Constructors Constructor Description FutureAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(T t)booleancancel(boolean mayInterruptIfRunning)Tget()Tget(long timeout, TimeUnit unit)booleanisCancelled()booleanisDone()
-
-
-
Method Detail
-
cancel
public boolean cancel(boolean mayInterruptIfRunning)
-
isCancelled
public boolean isCancelled()
- Specified by:
isCancelledin interfaceFuture<T>
-
get
public T get() throws InterruptedException, ExecutionException
- Specified by:
getin interfaceFuture<T>- Throws:
InterruptedExceptionExecutionException
-
get
public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
- Specified by:
getin interfaceFuture<T>- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
-