public abstract class AsyncResponse extends Object implements Response
Response
object will contain both the
object that is returned as the response along with a java.util.Map with the context
information of the response.Modifier | Constructor and Description |
---|---|
protected |
AsyncResponse(EndpointDescription ed) |
Modifier and Type | Method and Description |
---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
Object |
get() |
Object |
get(long timeout,
TimeUnit unit) |
Map |
getContext() |
abstract Throwable |
getFaultResponse(MessageContext mc) |
abstract Object |
getResponseValueObject(MessageContext mc) |
boolean |
isCancelled() |
boolean |
isDone() |
protected void |
onComplete(MessageContext mc) |
protected void |
onComplete(MessageContext mc,
ClassLoader cl) |
protected void |
onError(Throwable flt,
MessageContext faultCtx) |
protected void |
onError(Throwable flt,
MessageContext mc,
ClassLoader cl) |
protected AsyncResponse(EndpointDescription ed)
protected void onError(Throwable flt, MessageContext mc, ClassLoader cl)
protected void onError(Throwable flt, MessageContext faultCtx)
flt
- Throwable fault that occurredfaultCtx
- MessageContext if fault is a SOAP Faultprotected void onComplete(MessageContext mc, ClassLoader cl)
protected void onComplete(MessageContext mc)
public boolean cancel(boolean mayInterruptIfRunning)
public Object get() throws InterruptedException, ExecutionException
get
in interface Future
InterruptedException
ExecutionException
public Object get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future
InterruptedException
ExecutionException
TimeoutException
public boolean isCancelled()
isCancelled
in interface Future
public Map getContext()
getContext
in interface Response
public abstract Object getResponseValueObject(MessageContext mc)
public abstract Throwable getFaultResponse(MessageContext mc)
Copyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.