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
Exception
public 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
Exception
public Object get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future<Object>
InterruptedException
ExecutionException
TimeoutException
public boolean isCancelled()
isCancelled
in interface Future<Object>
public Object getAsyncState()
getAsyncState
in interface IAsyncResult
public WaitHandle getAsyncWaitHanle()
getAsyncWaitHanle
in interface IAsyncResult
public boolean getCompleteSynchronously()
getCompleteSynchronously
in interface IAsyncResult
public boolean getIsCompleted()
getIsCompleted
in interface IAsyncResult
public Object get() throws InterruptedException, ExecutionException
get
in interface Future<Object>
InterruptedException
ExecutionException
Copyright © 2012–2015 Microsoft. All rights reserved.