Public Member Functions

GridClientBoolFuture Class Reference

#include <gridfuture.hpp>

Inheritance diagram for GridClientBoolFuture:
GridBoolFailFutureImpl< ExT > GridBoolFutureImpl

List of all members.

Public Member Functions

virtual ~GridClientBoolFuture ()
virtual bool get () const =0
virtual bool get (const boost::posix_time::time_duration &timeout) const =0

Detailed Description

Future for operations that return boolean flag.


Constructor & Destructor Documentation

virtual GridClientBoolFuture::~GridClientBoolFuture (  )  [inline, virtual]

Destructor.


Member Function Documentation

virtual bool GridClientBoolFuture::get (  )  const [pure virtual]

Waits for future to finish and returns the result of operation.

Returns:
true if the operation succeeded, false otherwise.
Exceptions:
GridClientException In case an operation has thrown exception (it is rethrown).

Implemented in GridBoolFutureImpl, and GridBoolFailFutureImpl< ExT >.

virtual bool GridClientBoolFuture::get ( const boost::posix_time::time_duration &  timeout  )  const [pure virtual]

Waits for future to finish and returns the result of operation.

Parameters:
timeout Time to wait for result.
Returns:
true if the operation succeeded, false otherwise.
Exceptions:
GridClientException In case an operation has thrown exception (it is rethrown).
GridClientFutureTimeoutException If timed out before future finishes.

Implemented in GridBoolFutureImpl, and GridBoolFailFutureImpl< ExT >.


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