Public Member Functions

GridClientFuture< T > Class Template Reference

#include <gridfuture.hpp>

Inheritance diagram for GridClientFuture< T >:
GridFailFutureImpl< T, ExT > GridFutureImpl< T >

List of all members.

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

Detailed Description

template<class T>
class GridClientFuture< T >

Future for operations that return complex values like GridClientVariant, etc.


Constructor & Destructor Documentation

template<class T >
virtual GridClientFuture< T >::~GridClientFuture (  )  [inline, virtual]

Destructor.


Member Function Documentation

template<class T >
virtual T GridClientFuture< T >::get (  )  [pure virtual]

Waits for future to complete and fills success and result values.

Returns:
Operation result.

Implemented in GridFutureImpl< T >, and GridFailFutureImpl< T, ExT >.

template<class T >
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.

Parameters:
timeout Time to wait for result.
Returns:
Operation result.
Exceptions:
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 >.

template<class T >
virtual T GridClientFuture< T >::result (  )  const [pure virtual]

Result of operation. If the operation was not successful, it is not valid.

Returns:
Result value.

Implemented in GridFutureImpl< T >, and GridFailFutureImpl< T, ExT >.

template<class T >
virtual bool GridClientFuture< T >::success (  )  const [pure virtual]

Was the operation successful or not. If it was not successful, result is not valid.

Returns:
Flag indicating the result of the future.

Implemented in GridFutureImpl< T >, and GridFailFutureImpl< T, ExT >.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends