#include <rpcresult.hpp>
|
RPCTypes::CommHandle | getHandle () const |
| Retrieve the communication handle.
|
|
int32_t | getRPCCallResult () const |
| Returns the low level RPC result.
|
|
void | invalidate () |
| Invalidates the object.
|
|
bool | isComplete () const |
| Checks whether RPC call is complete.
|
|
| RPCResultBase () |
| C++ constructor - initialize the object.
|
|
bool | testIsTimedOut (const chrono::steady_clock::time_point &now) const |
| Tests whether operation has timed out.
|
|
bool | valid () const |
| Determines whether the RPC Result is still valid.
|
|
bool | waitComplete (int msToWait) const |
| Checks whether RPC call is complete.
|
|
◆ RPCResultBase()
C++ constructor - initialize the object.
◆ getHandle()
Retrieve the communication handle.
- Returns
- handle.
◆ getRPCCallResult()
Returns the low level RPC result.
- Returns
- result, oneof RPCResultValue::RESULT_ enumerations. If value differs from RPCResultValue::RESULT_OK then the destination service has not been contacted (at least not just yet if RESULT_INPROGRESS).
◆ invalidate()
Invalidates the object.
After this, valid() will return false and quering the value will throw an exception.
◆ isComplete()
Checks whether RPC call is complete.
- Returns
- true if call is complete and getValue can be safely called.
◆ setHandle()
Attach a handle to this object.
- Parameters
-
◆ setTimeout()
Sets the timeout for a RPC operation.
- Parameters
-
ms | amount of milliseconds after which the operation completes. |
◆ testIsTimedOut()
Tests whether operation has timed out.
- Returns
- true if operation has timed out.
◆ valid()
Determines whether the RPC Result is still valid.
- Returns
- true if still valid.
◆ waitComplete()
Checks whether RPC call is complete.
Optionally waits for specific amount of time
- Parameters
-
msToWait | how long to wait for RPC to become complete |
- Returns
- true if call is complete and getValue can be safely called.
◆ RPCResult< _T >
◆ m_expires
◆ m_future
◆ m_handle
◆ m_promise
◆ m_rpcresult
The documentation for this class was generated from the following file: