Public Member Functions

GridFailFutureImpl< T, ExT > Class Template Reference

#include <gridfutureimpl.hpp>

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

List of all members.

Public Member Functions

virtual bool success () const
virtual T result () const
virtual T get ()
virtual T get (const boost::posix_time::time_duration &timeout)

Detailed Description

template<class T, class ExT>
class GridFailFutureImpl< T, ExT >

Special future for reporting errors, which are initialy known (such as, when client is already stopped).

This future throws exception when client calls get().

Parameters:
T Type of result, this future is expected to return.
ExT Type of exception to throw.

Member Function Documentation

template<class T , class ExT >
virtual T GridFailFutureImpl< T, ExT >::get (  )  [inline, virtual]

Throws exception right away.

Returns:
Nothing, exception is thrown.

Implements GridClientFuture< T >.

template<class T , class ExT >
virtual T GridFailFutureImpl< T, ExT >::get ( const boost::posix_time::time_duration &  timeout  )  [inline, virtual]

Throws exception right away.

Returns:
Nothing, exception is thrown.

Implements GridClientFuture< T >.

template<class T , class ExT >
virtual T GridFailFutureImpl< T, ExT >::result (  )  const [inline, virtual]

Result of operation. An exception of type ExT will be thrown.

Implements GridClientFuture< T >.

template<class T , class ExT >
virtual bool GridFailFutureImpl< T, ExT >::success (  )  const [inline, virtual]

Always returns false - the operation was initially invalid.

Implements GridClientFuture< T >.


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