public class OSSAsyncTask<T extends OSSResult>
extends java.lang.Object
构造器和说明 |
---|
OSSAsyncTask() |
限定符和类型 | 方法和说明 |
---|---|
void |
cancel()
Cancel the task
|
T |
getResult()
Waits and gets the result.
|
boolean |
isCanceled()
Gets the flag if the task has been canceled.
|
boolean |
isCompleted()
Checks if the task is complete
|
void |
waitUntilFinished()
Waits until the task is finished
|
static OSSAsyncTask |
wrapRequestTask(java.util.concurrent.Future future,
ExecutionContext context) |
public static OSSAsyncTask wrapRequestTask(java.util.concurrent.Future future, ExecutionContext context)
public void cancel()
public boolean isCompleted()
public T getResult() throws ClientException, ServiceException
ClientException
ServiceException
public void waitUntilFinished()
public boolean isCanceled()