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()
TransferMonitor
isDone
インタフェース内 TransferMonitor
public final Transfer.TransferState getState()
TransferMonitor
getState
インタフェース内 TransferMonitor
public java.lang.String getDescription()
TransferMonitor
getDescription
インタフェース内 TransferMonitor
public void shutdownIfDone()
public void waitForCompletion() throws NiftyCloudClientException, NiftyCloudServiceException, java.lang.InterruptedException
NiftyCloudClientException
NiftyCloudServiceException
java.lang.InterruptedException
public T waitForResult() throws NiftyCloudClientException, NiftyCloudServiceException, java.lang.InterruptedException
NiftyCloudClientException
NiftyCloudServiceException
java.lang.InterruptedException
public NiftyCloudClientException waitForException() throws java.lang.InterruptedException
null
を返却します。java.lang.InterruptedException