rwsf::AsyncHandleImprwsf::BodyBase
#include rwsf/webservice/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::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).
rwsf::AsyncThread * getThread();
Returns the underlying thread.
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
void join();
Joins the thread. Throws a rwsf::Exception "InvalidAsyncHandle" 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.
© Copyright Rogue Wave Software, Inc. All Rights Reserved. All Rights Reserved. Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. HydraExpress is a trademark of Rogue Wave Software, Inc. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.