Apache CXF API

org.apache.cxf.jaxws
Class AsyncResponse<T>

java.lang.Object
  extended by org.apache.cxf.jaxws.AsyncResponse<T>
All Implemented Interfaces:
java.util.concurrent.Future<T>, javax.xml.ws.Response<T>

public class AsyncResponse<T>
extends java.lang.Object
implements javax.xml.ws.Response<T>


Constructor Summary
AsyncResponse(java.util.concurrent.Future<T> object, java.lang.Class<T> c)
           
 
Method Summary
 boolean cancel(boolean interrupt)
           
 T get()
           
 T get(long timeout, java.util.concurrent.TimeUnit unit)
           
 java.util.Map<java.lang.String,java.lang.Object> getContext()
           
 boolean isCancelled()
           
 boolean isDone()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncResponse

public AsyncResponse(java.util.concurrent.Future<T> object,
                     java.lang.Class<T> c)
Method Detail

cancel

public boolean cancel(boolean interrupt)
Specified by:
cancel in interface java.util.concurrent.Future<T>

isCancelled

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

isDone

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

get

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

get

public T 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<T>
Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException

getContext

public java.util.Map<java.lang.String,java.lang.Object> getContext()
Specified by:
getContext in interface javax.xml.ws.Response<T>

Apache CXF API

Apache CXF