T
- この Future
の型 S
- アダプティの Future
の型 public abstract class FutureAdapter<T,S> extends ObjectSE implements FutureSE<T>
Future
SE を T を介してパラメーター化された Future
に適応させる抽象クラス。すべてのメソッドはアダプティに委譲され、get()
および get(long, TimeUnit)
はアダプティの結果で adapt(Object)
を呼び出します。修飾子 | コンストラクターと説明 |
---|---|
protected | FutureAdapter(FutureSE<S> adaptee) 指定されたアダプターで新しい FutureAdapter を構築します。 |
修飾子と型 | メソッドと説明 |
---|---|
protected abstract T | adapt(S adapteeResult) 指定されたアダプターの結果を T に適合させます。 |
boolean | cancel(boolean mayInterruptIfRunning) |
T | get() |
T | get(long timeout, TimeUnitSE unit) |
protected FutureSE<S> | getAdaptee() アダプティを返します。 |
boolean | isCancelled() |
boolean | isDone() |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public boolean isCancelled()
FutureSE<T>
の isCancelledSE
@Nullable public T get() throws InterruptedExceptionSE, ExecutionExceptionSE
FutureSE<T>
の getSE
InterruptedExceptionSE
ExecutionExceptionSE
@Nullable public T get(long timeout, TimeUnitSE unit) throws InterruptedExceptionSE, ExecutionExceptionSE, TimeoutExceptionSE
FutureSE<T>
の getSE
InterruptedExceptionSE
ExecutionExceptionSE
TimeoutExceptionSE
@Nullable protected abstract T adapt(S adapteeResult) throws ExecutionExceptionSE
ExecutionExceptionSE