public class AsyncRequestResult extends Object implements IAsyncResult
| Constructor and Description |
|---|
AsyncRequestResult(ServiceRequestBase serviceRequest,
HttpWebRequest webRequest,
Future<?> task,
Object asyncState) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean arg0) |
static <T extends SimpleServiceRequestBase> |
extractServiceRequest(ExchangeService exchangeService,
Future<?> asyncResult) |
Object |
get() |
Object |
get(long timeout,
TimeUnit unit) |
Object |
getAsyncState() |
WaitHandle |
getAsyncWaitHanle() |
boolean |
getCompleteSynchronously() |
HttpWebRequest |
getHttpWebRequest() |
boolean |
getIsCompleted() |
FutureTask<?> |
getTask() |
boolean |
isCancelled() |
boolean |
isDone() |
void |
setHttpWebRequest(HttpWebRequest webRequest) |
void |
setServiceRequestBase(ServiceRequestBase serviceRequest) |
public AsyncRequestResult(ServiceRequestBase serviceRequest, HttpWebRequest webRequest, Future<?> task, Object asyncState) throws Exception
Exceptionpublic void setServiceRequestBase(ServiceRequestBase serviceRequest)
public void setHttpWebRequest(HttpWebRequest webRequest)
public HttpWebRequest getHttpWebRequest()
public FutureTask<?> getTask()
public static <T extends SimpleServiceRequestBase> T extractServiceRequest(ExchangeService exchangeService, Future<?> asyncResult) throws Exception
Exceptionpublic Object get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<Object>InterruptedExceptionExecutionExceptionTimeoutExceptionpublic boolean isCancelled()
isCancelled in interface Future<Object>public Object getAsyncState()
getAsyncState in interface IAsyncResultpublic WaitHandle getAsyncWaitHanle()
getAsyncWaitHanle in interface IAsyncResultpublic boolean getCompleteSynchronously()
getCompleteSynchronously in interface IAsyncResultpublic boolean getIsCompleted()
getIsCompleted in interface IAsyncResultpublic Object get() throws InterruptedException, ExecutionException
get in interface Future<Object>InterruptedExceptionExecutionExceptionCopyright © 2012–2015 Microsoft. All rights reserved.