microsoft.exchange.webservices.data
Class AsyncRequestResult

java.lang.Object
  extended by microsoft.exchange.webservices.data.AsyncRequestResult
All Implemented Interfaces:
java.util.concurrent.Future, IAsyncResult

public class AsyncRequestResult
extends java.lang.Object
implements IAsyncResult


Constructor Summary
AsyncRequestResult(microsoft.exchange.webservices.data.ServiceRequestBase serviceRequest, microsoft.exchange.webservices.data.HttpWebRequest webRequest, java.util.concurrent.Future task, java.lang.Object asyncState)
           
 
Method Summary
 boolean cancel(boolean arg0)
           
static
<T extends microsoft.exchange.webservices.data.SimpleServiceRequestBase>
T
extractServiceRequest(ExchangeService exchangeService, java.util.concurrent.Future asyncResult)
           
 java.lang.Object get()
           
 java.lang.Object get(long timeout, java.util.concurrent.TimeUnit unit)
           
 java.lang.Object getAsyncState()
           
 WaitHandle getAsyncWaitHanle()
           
 boolean getCompleteSynchronously()
           
 microsoft.exchange.webservices.data.HttpWebRequest getHttpWebRequest()
           
 boolean getIsCompleted()
           
 java.util.concurrent.FutureTask getTask()
           
 boolean isCancelled()
           
 boolean isDone()
           
 void setHttpWebRequest(microsoft.exchange.webservices.data.HttpWebRequest webRequest)
           
 void setServiceRequestBase(microsoft.exchange.webservices.data.ServiceRequestBase serviceRequest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncRequestResult

public AsyncRequestResult(microsoft.exchange.webservices.data.ServiceRequestBase serviceRequest,
                          microsoft.exchange.webservices.data.HttpWebRequest webRequest,
                          java.util.concurrent.Future task,
                          java.lang.Object asyncState)
                   throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

setServiceRequestBase

public void setServiceRequestBase(microsoft.exchange.webservices.data.ServiceRequestBase serviceRequest)

setHttpWebRequest

public void setHttpWebRequest(microsoft.exchange.webservices.data.HttpWebRequest webRequest)

getHttpWebRequest

public microsoft.exchange.webservices.data.HttpWebRequest getHttpWebRequest()

getTask

public java.util.concurrent.FutureTask getTask()

extractServiceRequest

public static <T extends microsoft.exchange.webservices.data.SimpleServiceRequestBase> T extractServiceRequest(ExchangeService exchangeService,
                                                                                                               java.util.concurrent.Future asyncResult)
                                                                                                    throws java.lang.Exception
Throws:
java.lang.Exception

cancel

public boolean cancel(boolean arg0)
Specified by:
cancel in interface java.util.concurrent.Future

get

public java.lang.Object get(long timeout,
                            java.util.concurrent.TimeUnit unit)
                     throws java.lang.InterruptedException,
                            java.util.concurrent.ExecutionException,
                            java.util.concurrent.TimeoutException
Specified by:
get in interface java.util.concurrent.Future
Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException

isCancelled

public boolean isCancelled()
Specified by:
isCancelled in interface java.util.concurrent.Future

isDone

public boolean isDone()
Specified by:
isDone in interface java.util.concurrent.Future

getAsyncState

public java.lang.Object getAsyncState()
Specified by:
getAsyncState in interface IAsyncResult

getAsyncWaitHanle

public WaitHandle getAsyncWaitHanle()
Specified by:
getAsyncWaitHanle in interface IAsyncResult

getCompleteSynchronously

public boolean getCompleteSynchronously()
Specified by:
getCompleteSynchronously in interface IAsyncResult

getIsCompleted

public boolean getIsCompleted()
Specified by:
getIsCompleted in interface IAsyncResult

get

public java.lang.Object get()
                     throws java.lang.InterruptedException,
                            java.util.concurrent.ExecutionException
Specified by:
get in interface java.util.concurrent.Future
Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException