rwsf::AsyncHandleImp rwsf::BodyBase
#include <rw/rwsf/soapworx/AsyncHandle.h>
rwsf::AsyncHandleImp is used to create asynchronous clients.
This class implements the handle/body idiom in which rwsf::AsyncHandle is the handle, and rwsf::AsyncHandleImp is the body.
For a discussion on using this class, see its handle, rwsf::AsyncHandle.
AsyncHandleImp(rwsf::AsyncThread* thread);
Constructs a new body inside thread.
virtual ~AsyncHandleImp();
Destructor. Deletes the body and the thread.
rwsf::AsyncThread* getThread();
Returns the underlying thread.
virtual void join();
Joins the thread. Throws a rwsf::Exception "Invalid Async Handle" if the thread cannot be found. Use this method to complete an asynchronous operation without having to call the specific [operation]End() method. This is useful if there is no data to retrieve or you don't care about returned data.
virtual bool isFinished() const;
Returns true if the operation has completed; false otherwise. Once isFinished() returns true, any data returned by the operation should be available by calling the [operation]End() method corresponding to the [operation]Start() method that returned this handle.
virtual rwsf::CallInfo getCallInfo() const;
Returns a copy of the rwsf::CallInfo object instance associated with the asynchronous operation. When the operation has completed, this object will hold properties of the response message (such as transport and SOAP headers).
©2004-2007 Copyright Quovadx, Inc. All Rights Reserved.
Quovadx and Rogue Wave are registered trademarks of Quovadx, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.