Package top.focess.qq.api.util
Class CombinedFuture
- java.lang.Object
-
- top.focess.qq.api.util.CombinedFuture
-
-
Constructor Summary
Constructors Constructor Description CombinedFuture()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancancel(boolean mayInterruptIfRunning)voidcombine(Future<Boolean> future)Combine a Future of BooleanBooleanget()Booleanget(long timeout, @NotNull TimeUnit unit)booleanisCancelled()booleanisDone()
-
-
-
Method Detail
-
combine
public void combine(Future<Boolean> future)
Combine a Future of Boolean- Parameters:
future- the future need to be combined
-
cancel
public boolean cancel(boolean mayInterruptIfRunning)
-
isCancelled
public boolean isCancelled()
- Specified by:
isCancelledin interfaceFuture<Boolean>
-
get
public Boolean get() throws InterruptedException, ExecutionException
- Specified by:
getin interfaceFuture<Boolean>- Throws:
InterruptedExceptionExecutionException
-
get
public Boolean get(long timeout, @NotNull @NotNull TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
- Specified by:
getin interfaceFuture<Boolean>- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
-