com.amazonaws.mturk.service.axis
Class AsyncRequest

java.lang.Object
  extended by com.amazonaws.mturk.service.axis.AsyncRequest
All Implemented Interfaces:
java.util.concurrent.Callable<java.lang.Object>

public class AsyncRequest
extends java.lang.Object
implements java.util.concurrent.Callable<java.lang.Object>

An asynchronous request that waits in the Axis work queue to be processed


Constructor Summary
AsyncRequest(Message msg, Filter f, AsyncCallback callback)
          Creates a new asynchronous request
 
Method Summary
 java.lang.Object call()
          Executes the request on the filter chain and calls the callback handler (if defined)
 Message getMessage()
          Returns the message that is/was send to the requester service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncRequest

public AsyncRequest(Message msg,
                    Filter f,
                    AsyncCallback callback)
Creates a new asynchronous request

Parameters:
msg - The request to send to the requester endpoint
f - The first filter to invoke
callback - (Optional) A callback handler to invoke when the work queue processed the request
Method Detail

getMessage

public Message getMessage()
Returns the message that is/was send to the requester service


call

public java.lang.Object call()
                      throws java.lang.Exception
Executes the request on the filter chain and calls the callback handler (if defined)

Specified by:
call in interface java.util.concurrent.Callable<java.lang.Object>
Throws:
java.lang.Exception