| コンストラクタと説明 |
|---|
SimpleFuture() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
V |
get() |
V |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
void |
set(V value) |
void |
setException(ExecutionException exception) |
public boolean isCancelled()
isCancelled インタフェース内 Future<V>public V get() throws InterruptedException, ExecutionException
get インタフェース内 Future<V>InterruptedExceptionExecutionExceptionpublic V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get インタフェース内 Future<V>InterruptedExceptionExecutionExceptionTimeoutExceptionpublic void set(V value) throws IllegalStateException
public void setException(ExecutionException exception) throws IllegalStateException
Copyright © 2017. All rights reserved.