Package com.sun.xml.ws.client
Class AsyncResponseImpl<T>
- java.lang.Object
-
- java.util.concurrent.FutureTask<T>
-
- com.sun.xml.ws.client.AsyncResponseImpl<T>
-
- All Implemented Interfaces:
ResponseContextReceiver,Runnable,Future<T>,RunnableFuture<T>,javax.xml.ws.Response<T>
public final class AsyncResponseImpl<T> extends FutureTask<T> implements javax.xml.ws.Response<T>, ResponseContextReceiver
Responseimplementation. When Runnbale is executed, it just hands the request to Fiber and returns. When the Fiber finishes the execution, it sets response in theFutureTask- Author:
- Jitendra Kotamraju
-
-
Constructor Summary
Constructors Constructor Description AsyncResponseImpl(Runnable runnable, javax.xml.ws.AsyncHandler<T> handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancancel(boolean mayInterruptIfRunning)ResponseContextgetContext()voidrun()voidset(T v, Throwable t)voidsetCancelable(Cancelable cancelable)voidsetResponseContext(ResponseContext rc)Called upon the completion of the invocation to set aResponseContext.-
Methods inherited from class java.util.concurrent.FutureTask
done, get, get, isCancelled, isDone, runAndReset, set, setException, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.concurrent.Future
get, get, isCancelled, isDone
-
-
-
-
Method Detail
-
run
public void run()
- Specified by:
runin interfaceRunnable- Specified by:
runin interfaceRunnableFuture<T>- Overrides:
runin classFutureTask<T>
-
getContext
public ResponseContext getContext()
- Specified by:
getContextin interfacejavax.xml.ws.Response<T>
-
setResponseContext
public void setResponseContext(ResponseContext rc)
Description copied from interface:ResponseContextReceiverCalled upon the completion of the invocation to set aResponseContext.This method is invoked even when the invocation fails.
- Specified by:
setResponseContextin interfaceResponseContextReceiver
-
setCancelable
public void setCancelable(Cancelable cancelable)
-
-