Constructor and Description |
---|
ImmediateFuture(Boolean returnValue) |
ImmediateFuture(Exception e) |
Modifier and Type | Method and Description |
---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
Boolean |
get() |
Boolean |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
public ImmediateFuture(Boolean returnValue)
public ImmediateFuture(Exception e)
public boolean cancel(boolean mayInterruptIfRunning)
public Boolean get() throws InterruptedException, ExecutionException
get
in interface Future<Boolean>
InterruptedException
ExecutionException
public Boolean get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future<Boolean>
InterruptedException
ExecutionException
TimeoutException
public boolean isCancelled()
isCancelled
in interface Future<Boolean>
Copyright © 2017. All rights reserved.