T - V - public abstract class AbstractTransferMonitor<T,V> extends java.lang.Object implements TransferMonitor, java.util.concurrent.Callable<T>
| 修飾子とタイプ | メソッドと説明 |
|---|---|
abstract T |
call()
このメソッドはこのクラスを継承するクラス内で実装される必要があります。
|
java.lang.String |
getDescription()
descriptionを取得します。
|
Transfer.TransferState |
getState()
現在のステータスを取得します。
|
boolean |
isDone()
処理が終了したかどうかの判定を行います。
|
void |
shutdownIfDone()
転送処理が終了している場合はスレッドプールを終了します。
|
void |
waitForCompletion()
処理が完了するまで待機します。
|
NiftyCloudClientException |
waitForException()
処理が完了するか、エラーが発生するまで待機します。
|
T |
waitForResult()
転送が完了するまで待機します。
|
public final boolean isDone()
TransferMonitorisDone インタフェース内 TransferMonitorpublic final Transfer.TransferState getState()
TransferMonitorgetState インタフェース内 TransferMonitorpublic java.lang.String getDescription()
TransferMonitorgetDescription インタフェース内 TransferMonitorpublic void shutdownIfDone()
public void waitForCompletion()
throws NiftyCloudClientException,
NiftyCloudServiceException,
java.lang.InterruptedException
NiftyCloudClientExceptionNiftyCloudServiceExceptionjava.lang.InterruptedExceptionpublic T waitForResult() throws NiftyCloudClientException, NiftyCloudServiceException, java.lang.InterruptedException
NiftyCloudClientExceptionNiftyCloudServiceExceptionjava.lang.InterruptedExceptionpublic NiftyCloudClientException waitForException() throws java.lang.InterruptedException
nullを返却します。java.lang.InterruptedException