#include <gridfuture.hpp>
Public Member Functions | |
| virtual | ~GridClientFuture () |
| virtual bool | success () const =0 |
| virtual T | result () const =0 |
| virtual T | get ()=0 |
| virtual T | get (const boost::posix_time::time_duration &timeout)=0 |
Future for operations that return complex values like GridClientVariant, etc.
| virtual GridClientFuture< T >::~GridClientFuture | ( | ) | [inline, virtual] |
Destructor.
| virtual T GridClientFuture< T >::get | ( | ) | [pure virtual] |
Waits for future to complete and fills success and result values.
Implemented in GridFutureImpl< T >, and GridFailFutureImpl< T, ExT >.
| virtual T GridClientFuture< T >::get | ( | const boost::posix_time::time_duration & | timeout | ) | [pure virtual] |
Waits for future to finish and returns the result of operation.
| timeout | Time to wait for result. |
| GridClientException | In case an operation has thrown exception (it is rethrown). | |
| GridClientFutureTimeoutException | If timed out before future finishes. |
Implemented in GridFutureImpl< T >, and GridFailFutureImpl< T, ExT >.
| virtual T GridClientFuture< T >::result | ( | ) | const [pure virtual] |
Result of operation. If the operation was not successful, it is not valid.
Implemented in GridFutureImpl< T >, and GridFailFutureImpl< T, ExT >.
| virtual bool GridClientFuture< T >::success | ( | ) | const [pure virtual] |
Was the operation successful or not. If it was not successful, result is not valid.
Implemented in GridFutureImpl< T >, and GridFailFutureImpl< T, ExT >.
1.7.1